Compare commits

..

42 Commits

Author SHA1 Message Date
Jackson Tian
6dd2cf4afe test: add macosx into jobs 2023-09-14 14:39:57 +08:00
时起
8d13c48cce sts support compile on MACOS 2023-09-14 13:58:22 +08:00
Jackson Tian
be6c27326e test: add github action workflow 2023-09-14 13:54:16 +08:00
sdk-team
197159f97b Add value, values, startValue, endValue in ExportModelFeatureTrainingSetTable. 2023-09-13 09:54:04 +00:00
sdk-team
e788fcb800 DescribeChildInstanceRegions. 2023-09-12 03:14:30 +00:00
sdk-team
33537c905e Update by SDK platform. 2023-09-11 11:44:57 +00:00
sdk-team
c49607aeca add Instance, NetworkRule, Policy, ApplicationAccessPoint, ClientKey OpenAPIs 2023-09-11 09:03:24 +00:00
sdk-team
3dfdfd0845 Add eventTime, equal in ExportModelFeatureTrainingSetTable. 2023-09-08 11:58:16 +00:00
sdk-team
3aefd86108 Add taskId in WriteFeatureViewTable. 2023-09-08 07:08:02 +00:00
sdk-team
2b9789d179 Generated 2018-01-20 for Iot. 2023-09-07 09:42:57 +00:00
sdk-team
b43e953ab1 Support new feature. 2023-09-07 01:28:52 +00:00
sdk-team
830b92f2f9 Parameter changes in SubmitServerlessJob. 2023-09-06 09:43:20 +00:00
sdk-team
8d45c4275f Support ListNodeInfos4Pod. 2023-09-04 06:09:08 +00:00
sdk-team
22a89cfe51 Add request parameter Name in ListFeatureViews. 2023-09-04 04:04:48 +00:00
sdk-team
e33d34a3fc Support ListNodeInfos4Pod. 2023-09-04 02:54:20 +00:00
sdk-team
677e71ae09 发布资源清单下载、高级搜索、合规趋势统计等API. 2023-09-01 09:00:48 +00:00
sdk-team
83453dcf69 Update MergeVideoFace. 2023-08-31 08:09:28 +00:00
sdk-team
c9b390c0c1 Supported connector visualization manage. 2023-08-31 01:02:39 +00:00
sdk-team
40f61e3ce6 Add new apis. 2023-08-30 09:38:32 +00:00
sdk-team
3fba042126 ListProjects allows workspaceId empty. 2023-08-30 07:01:27 +00:00
sdk-team
e862bd03c8 Update api ListInstances. 2023-08-29 03:32:48 +00:00
sdk-team
32fd2c4a6b Update api ListInstances. 2023-08-28 13:47:28 +00:00
sdk-team
328f3a0eca add make stage, preview url 2023-08-28 08:34:52 +00:00
sdk-team
06ad26c36a Support elastic network interface. 2023-08-28 02:28:04 +00:00
sdk-team
1243cb5656 Supported recommand serialization format flat. 2023-08-24 13:05:46 +00:00
sdk-team
edb09dc947 Generated 2021-01-01 for Ft. 2023-08-23 08:17:40 +00:00
sdk-team
64af716b19 Generated 2015-03-03 for Ft. 2023-08-23 08:16:41 +00:00
sdk-team
3fbe4829ca Generated 2015-03-03 for Ft. 2023-08-23 07:51:19 +00:00
sdk-team
e65f74a248 Generated 2021-01-01 for Ft. 2023-08-23 07:50:55 +00:00
sdk-team
7041743c93 Generated 2021-01-01 for Ft. 2023-08-23 06:43:50 +00:00
sdk-team
79bd8c7bd3 Generated 2021-01-01 for Ft. 2023-08-23 02:26:57 +00:00
sdk-team
82107640c0 Support DryRunCluster For LakeVersion. 2023-08-23 01:53:40 +00:00
sdk-team
a70be0a97a Upgrade SDK. 2023-08-22 06:20:01 +00:00
sdk-team
cfc2224de7 发布资源清单下载、高级搜索、合规趋势统计等API. 2023-08-21 06:19:49 +00:00
sdk-team
e25300b86c Generated 2021-01-01 for Ft. 2023-08-18 03:20:59 +00:00
sdk-team
d839907367 Update by SDK platform. 2023-08-17 12:54:07 +00:00
sdk-team
1524e72744 Supported CommandLine for StartTerminalSession. 2023-08-17 03:57:49 +00:00
sdk-team
c360e49648 Supported dynamicRoute. 2023-08-16 10:05:35 +00:00
sdk-team
1f76b3052a Generated 2021-01-01 for Ft. 2023-08-14 10:07:53 +00:00
sdk-team
112575d30a Generated 2021-01-01 for Ft. 2023-08-14 10:00:43 +00:00
sdk-team
3147a6c839 Generated 2021-01-01 for Ft. 2023-08-14 05:53:17 +00:00
sdk-team
50bb4d85aa Generated 2021-01-01 for Ft. 2023-08-14 04:21:44 +00:00
940 changed files with 55127 additions and 2425 deletions

29
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macosx-latest]
runs-on: ${{ matrix.os }}
env:
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
- if: ${{ matrix.os == 'macosx-latest' }}
run: brew install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
- run: bash ./unit_test.sh
- run: bash ./generate_code_cov.sh
- run: bash ./function_test.sh
- run: bash <(curl -s https://codecov.io/bash)

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ test/httpserver/nohup.out
.idea
build/
cmake-build-debug/
.DS_Store

View File

@@ -1 +1 @@
1.36.1719
1.36.1758

View File

@@ -179,6 +179,8 @@ set(adb_public_header_model
include/alibabacloud/adb/model/KillProcessResult.h
include/alibabacloud/adb/model/ListTagResourcesRequest.h
include/alibabacloud/adb/model/ListTagResourcesResult.h
include/alibabacloud/adb/model/MigrateDBClusterRequest.h
include/alibabacloud/adb/model/MigrateDBClusterResult.h
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h
include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h
@@ -386,6 +388,8 @@ set(adb_src
src/model/KillProcessResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/MigrateDBClusterRequest.cc
src/model/MigrateDBClusterResult.cc
src/model/ModifyAccountDescriptionRequest.cc
src/model/ModifyAccountDescriptionResult.cc
src/model/ModifyAuditLogConfigRequest.cc

View File

@@ -180,6 +180,8 @@
#include "model/KillProcessResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/MigrateDBClusterRequest.h"
#include "model/MigrateDBClusterResult.h"
#include "model/ModifyAccountDescriptionRequest.h"
#include "model/ModifyAccountDescriptionResult.h"
#include "model/ModifyAuditLogConfigRequest.h"
@@ -472,6 +474,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::MigrateDBClusterResult> MigrateDBClusterOutcome;
typedef std::future<MigrateDBClusterOutcome> MigrateDBClusterOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::MigrateDBClusterRequest&, const MigrateDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MigrateDBClusterAsyncHandler;
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
@@ -783,6 +788,9 @@ namespace AlibabaCloud
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
MigrateDBClusterOutcome migrateDBCluster(const Model::MigrateDBClusterRequest &request)const;
void migrateDBClusterAsync(const Model::MigrateDBClusterRequest& request, const MigrateDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MigrateDBClusterOutcomeCallable migrateDBClusterCallable(const Model::MigrateDBClusterRequest& request) const;
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const;

View File

@@ -38,6 +38,8 @@ public:
void setRegionId(const std::string &regionId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getDBClusterId() const;
void setDBClusterId(const std::string &dBClusterId);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
std::string getDBClusterVersion() const;
@@ -46,16 +48,20 @@ public:
void setOwnerId(long ownerId);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
bool getMigrate() const;
void setMigrate(bool migrate);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
std::string dBClusterVersion_;
long ownerId_;
std::string zoneId_;
bool migrate_;
};
} // namespace Model
} // namespace Adb

View File

@@ -34,6 +34,8 @@ public:
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getSchemaName() const;
void setSchemaName(const std::string &schemaName);
std::string getResourceOwnerAccount() const;
@@ -48,6 +50,7 @@ public:
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
std::string schemaName_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_H_
#define ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_H_
#include <alibabacloud/adb/AdbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Adb {
namespace Model {
class ALIBABACLOUD_ADB_EXPORT MigrateDBClusterRequest : public RpcServiceRequest {
public:
MigrateDBClusterRequest();
~MigrateDBClusterRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getDBClusterId() const;
void setDBClusterId(const std::string &dBClusterId);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Adb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERRESULT_H_
#define ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/adb/AdbExport.h>
namespace AlibabaCloud
{
namespace Adb
{
namespace Model
{
class ALIBABACLOUD_ADB_EXPORT MigrateDBClusterResult : public ServiceResult
{
public:
MigrateDBClusterResult();
explicit MigrateDBClusterResult(const std::string &payload);
~MigrateDBClusterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERRESULT_H_

View File

@@ -2895,6 +2895,42 @@ AdbClient::ListTagResourcesOutcomeCallable AdbClient::listTagResourcesCallable(c
return task->get_future();
}
AdbClient::MigrateDBClusterOutcome AdbClient::migrateDBCluster(const MigrateDBClusterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MigrateDBClusterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return MigrateDBClusterOutcome(MigrateDBClusterResult(outcome.result()));
else
return MigrateDBClusterOutcome(outcome.error());
}
void AdbClient::migrateDBClusterAsync(const MigrateDBClusterRequest& request, const MigrateDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, migrateDBCluster(request), context);
};
asyncExecute(new Runnable(fn));
}
AdbClient::MigrateDBClusterOutcomeCallable AdbClient::migrateDBClusterCallable(const MigrateDBClusterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<MigrateDBClusterOutcome()>>(
[this, request]()
{
return this->migrateDBCluster(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AdbClient::ModifyAccountDescriptionOutcome AdbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -61,6 +61,15 @@ void DescribeComputeResourceRequest::setResourceOwnerAccount(const std::string &
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeComputeResourceRequest::getDBClusterId() const {
return dBClusterId_;
}
void DescribeComputeResourceRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
std::string DescribeComputeResourceRequest::getOwnerAccount() const {
return ownerAccount_;
}
@@ -97,3 +106,12 @@ void DescribeComputeResourceRequest::setZoneId(const std::string &zoneId) {
setParameter(std::string("ZoneId"), zoneId);
}
bool DescribeComputeResourceRequest::getMigrate() const {
return migrate_;
}
void DescribeComputeResourceRequest::setMigrate(bool migrate) {
migrate_ = migrate;
setParameter(std::string("Migrate"), migrate ? "true" : "false");
}

View File

@@ -43,6 +43,15 @@ void DescribeTablesRequest::setAccessKeyId(const std::string &accessKeyId) {
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeTablesRequest::getRegionId() const {
return regionId_;
}
void DescribeTablesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeTablesRequest::getSchemaName() const {
return schemaName_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/adb/model/MigrateDBClusterRequest.h>
using AlibabaCloud::Adb::Model::MigrateDBClusterRequest;
MigrateDBClusterRequest::MigrateDBClusterRequest()
: RpcServiceRequest("adb", "2019-03-15", "MigrateDBCluster") {
setMethod(HttpRequest::Method::Post);
}
MigrateDBClusterRequest::~MigrateDBClusterRequest() {}
long MigrateDBClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void MigrateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string MigrateDBClusterRequest::getAccessKeyId() const {
return accessKeyId_;
}
void MigrateDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string MigrateDBClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void MigrateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string MigrateDBClusterRequest::getDBClusterId() const {
return dBClusterId_;
}
void MigrateDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
std::string MigrateDBClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
void MigrateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long MigrateDBClusterRequest::getOwnerId() const {
return ownerId_;
}
void MigrateDBClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

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

View File

@@ -43,6 +43,8 @@ set(avatar_public_header_model
include/alibabacloud/avatar/model/QueryRunningInstanceResult.h
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusRequest.h
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusResult.h
include/alibabacloud/avatar/model/QueryVideoTaskInfoRequest.h
include/alibabacloud/avatar/model/QueryVideoTaskInfoResult.h
include/alibabacloud/avatar/model/SendCommandRequest.h
include/alibabacloud/avatar/model/SendCommandResult.h
include/alibabacloud/avatar/model/SendMessageRequest.h
@@ -92,6 +94,8 @@ set(avatar_src
src/model/QueryRunningInstanceResult.cc
src/model/QueryTimedResetOperateStatusRequest.cc
src/model/QueryTimedResetOperateStatusResult.cc
src/model/QueryVideoTaskInfoRequest.cc
src/model/QueryVideoTaskInfoResult.cc
src/model/SendCommandRequest.cc
src/model/SendCommandResult.cc
src/model/SendMessageRequest.cc

View File

@@ -44,6 +44,8 @@
#include "model/QueryRunningInstanceResult.h"
#include "model/QueryTimedResetOperateStatusRequest.h"
#include "model/QueryTimedResetOperateStatusResult.h"
#include "model/QueryVideoTaskInfoRequest.h"
#include "model/QueryVideoTaskInfoResult.h"
#include "model/SendCommandRequest.h"
#include "model/SendCommandResult.h"
#include "model/SendMessageRequest.h"
@@ -110,6 +112,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryTimedResetOperateStatusResult> QueryTimedResetOperateStatusOutcome;
typedef std::future<QueryTimedResetOperateStatusOutcome> QueryTimedResetOperateStatusOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::QueryTimedResetOperateStatusRequest&, const QueryTimedResetOperateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTimedResetOperateStatusAsyncHandler;
typedef Outcome<Error, Model::QueryVideoTaskInfoResult> QueryVideoTaskInfoOutcome;
typedef std::future<QueryVideoTaskInfoOutcome> QueryVideoTaskInfoOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::QueryVideoTaskInfoRequest&, const QueryVideoTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVideoTaskInfoAsyncHandler;
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
@@ -184,6 +189,9 @@ namespace AlibabaCloud
QueryTimedResetOperateStatusOutcome queryTimedResetOperateStatus(const Model::QueryTimedResetOperateStatusRequest &request)const;
void queryTimedResetOperateStatusAsync(const Model::QueryTimedResetOperateStatusRequest& request, const QueryTimedResetOperateStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTimedResetOperateStatusOutcomeCallable queryTimedResetOperateStatusCallable(const Model::QueryTimedResetOperateStatusRequest& request) const;
QueryVideoTaskInfoOutcome queryVideoTaskInfo(const Model::QueryVideoTaskInfoRequest &request)const;
void queryVideoTaskInfoAsync(const Model::QueryVideoTaskInfoRequest& request, const QueryVideoTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryVideoTaskInfoOutcomeCallable queryVideoTaskInfoCallable(const Model::QueryVideoTaskInfoRequest& request) const;
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
std::string alphaUrl;
int videoDuration;
std::string previewPic;
std::string failCode;
std::string subtitlesUrl;
std::string wordSubtitlesUrl;

View File

@@ -54,6 +54,7 @@ namespace AlibabaCloud
std::vector<OnlineItem> online;
};
std::string description;
std::string makeStage;
SupportedResolutions supportedResolutions;
std::string portrait;
std::string avatarType;

View File

@@ -52,12 +52,14 @@ namespace AlibabaCloud
std::vector<OnlineItem> online;
};
std::string description;
std::string makeStage;
SupportedResolutions supportedResolutions;
std::string portrait;
std::string modelType;
std::string avatarType;
std::string makeStatus;
std::string image;
std::string allLocateImages;
std::string name;
std::string makeFailReason;
};

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_
#define ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_
#include <alibabacloud/avatar/AvatarExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Avatar {
namespace Model {
class ALIBABACLOUD_AVATAR_EXPORT QueryVideoTaskInfoRequest : public RpcServiceRequest {
public:
struct App {
std::string appId;
};
QueryVideoTaskInfoRequest();
~QueryVideoTaskInfoRequest();
App getApp() const;
void setApp(const App &app);
std::string getTitle() const;
void setTitle(const std::string &title);
int getType() const;
void setType(int type);
std::string getOrderById() const;
void setOrderById(const std::string &orderById);
int getPageNo() const;
void setPageNo(int pageNo);
long getTenantId() const;
void setTenantId(long tenantId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getTaskUuid() const;
void setTaskUuid(const std::string &taskUuid);
int getStatus() const;
void setStatus(int status);
private:
App app_;
std::string title_;
int type_;
std::string orderById_;
int pageNo_;
long tenantId_;
int pageSize_;
std::string taskUuid_;
int status_;
};
} // namespace Model
} // namespace Avatar
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_
#define ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/avatar/AvatarExport.h>
namespace AlibabaCloud
{
namespace Avatar
{
namespace Model
{
class ALIBABACLOUD_AVATAR_EXPORT QueryVideoTaskInfoResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
struct TaskResult
{
std::string alphaUrl;
int videoDuration;
std::string previewPic;
std::string failCode;
std::string subtitlesUrl;
std::string wordSubtitlesUrl;
std::string failReason;
std::string videoUrl;
};
int status;
int type;
std::string taskUuid;
TaskResult taskResult;
std::string title;
};
long totalCount;
int pageSize;
std::vector<ListItem> list;
int pageNo;
};
QueryVideoTaskInfoResult();
explicit QueryVideoTaskInfoResult(const std::string &payload);
~QueryVideoTaskInfoResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_

View File

@@ -447,6 +447,42 @@ AvatarClient::QueryTimedResetOperateStatusOutcomeCallable AvatarClient::queryTim
return task->get_future();
}
AvatarClient::QueryVideoTaskInfoOutcome AvatarClient::queryVideoTaskInfo(const QueryVideoTaskInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryVideoTaskInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryVideoTaskInfoOutcome(QueryVideoTaskInfoResult(outcome.result()));
else
return QueryVideoTaskInfoOutcome(outcome.error());
}
void AvatarClient::queryVideoTaskInfoAsync(const QueryVideoTaskInfoRequest& request, const QueryVideoTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryVideoTaskInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
AvatarClient::QueryVideoTaskInfoOutcomeCallable AvatarClient::queryVideoTaskInfoCallable(const QueryVideoTaskInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryVideoTaskInfoOutcome()>>(
[this, request]()
{
return this->queryVideoTaskInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AvatarClient::SendCommandOutcome AvatarClient::sendCommand(const SendCommandRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -63,6 +63,8 @@ void GetVideoTaskInfoResult::parse(const std::string &payload)
data_.taskResult.videoDuration = std::stoi(taskResultNode["VideoDuration"].asString());
if(!taskResultNode["AlphaUrl"].isNull())
data_.taskResult.alphaUrl = taskResultNode["AlphaUrl"].asString();
if(!taskResultNode["PreviewPic"].isNull())
data_.taskResult.previewPic = taskResultNode["PreviewPic"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -70,6 +70,8 @@ void QueryAvatarListResult::parse(const std::string &payload)
listItemObject.makeStatus = dataNodeListlistItem["MakeStatus"].asString();
if(!dataNodeListlistItem["MakeFailReason"].isNull())
listItemObject.makeFailReason = dataNodeListlistItem["MakeFailReason"].asString();
if(!dataNodeListlistItem["MakeStage"].isNull())
listItemObject.makeStage = dataNodeListlistItem["MakeStage"].asString();
auto supportedResolutionsNode = value["SupportedResolutions"];
auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)

View File

@@ -48,6 +48,8 @@ void QueryAvatarResult::parse(const std::string &payload)
data_.portrait = dataNode["Portrait"].asString();
if(!dataNode["Image"].isNull())
data_.image = dataNode["Image"].asString();
if(!dataNode["AllLocateImages"].isNull())
data_.allLocateImages = dataNode["AllLocateImages"].asString();
if(!dataNode["ModelType"].isNull())
data_.modelType = dataNode["ModelType"].asString();
if(!dataNode["AvatarType"].isNull())
@@ -56,6 +58,8 @@ void QueryAvatarResult::parse(const std::string &payload)
data_.makeStatus = dataNode["MakeStatus"].asString();
if(!dataNode["MakeFailReason"].isNull())
data_.makeFailReason = dataNode["MakeFailReason"].asString();
if(!dataNode["MakeStage"].isNull())
data_.makeStage = dataNode["MakeStage"].asString();
auto supportedResolutionsNode = dataNode["SupportedResolutions"];
auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/avatar/model/QueryVideoTaskInfoRequest.h>
using AlibabaCloud::Avatar::Model::QueryVideoTaskInfoRequest;
QueryVideoTaskInfoRequest::QueryVideoTaskInfoRequest()
: RpcServiceRequest("avatar", "2022-01-30", "QueryVideoTaskInfo") {
setMethod(HttpRequest::Method::Post);
}
QueryVideoTaskInfoRequest::~QueryVideoTaskInfoRequest() {}
QueryVideoTaskInfoRequest::App QueryVideoTaskInfoRequest::getApp() const {
return app_;
}
void QueryVideoTaskInfoRequest::setApp(const QueryVideoTaskInfoRequest::App &app) {
app_ = app;
setParameter(std::string("App") + ".AppId", app.appId);
}
std::string QueryVideoTaskInfoRequest::getTitle() const {
return title_;
}
void QueryVideoTaskInfoRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
int QueryVideoTaskInfoRequest::getType() const {
return type_;
}
void QueryVideoTaskInfoRequest::setType(int type) {
type_ = type;
setParameter(std::string("Type"), std::to_string(type));
}
std::string QueryVideoTaskInfoRequest::getOrderById() const {
return orderById_;
}
void QueryVideoTaskInfoRequest::setOrderById(const std::string &orderById) {
orderById_ = orderById;
setParameter(std::string("OrderById"), orderById);
}
int QueryVideoTaskInfoRequest::getPageNo() const {
return pageNo_;
}
void QueryVideoTaskInfoRequest::setPageNo(int pageNo) {
pageNo_ = pageNo;
setParameter(std::string("PageNo"), std::to_string(pageNo));
}
long QueryVideoTaskInfoRequest::getTenantId() const {
return tenantId_;
}
void QueryVideoTaskInfoRequest::setTenantId(long tenantId) {
tenantId_ = tenantId;
setParameter(std::string("TenantId"), std::to_string(tenantId));
}
int QueryVideoTaskInfoRequest::getPageSize() const {
return pageSize_;
}
void QueryVideoTaskInfoRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string QueryVideoTaskInfoRequest::getTaskUuid() const {
return taskUuid_;
}
void QueryVideoTaskInfoRequest::setTaskUuid(const std::string &taskUuid) {
taskUuid_ = taskUuid;
setParameter(std::string("TaskUuid"), taskUuid);
}
int QueryVideoTaskInfoRequest::getStatus() const {
return status_;
}
void QueryVideoTaskInfoRequest::setStatus(int status) {
status_ = status;
setParameter(std::string("Status"), std::to_string(status));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/avatar/model/QueryVideoTaskInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Avatar;
using namespace AlibabaCloud::Avatar::Model;
QueryVideoTaskInfoResult::QueryVideoTaskInfoResult() :
ServiceResult()
{}
QueryVideoTaskInfoResult::QueryVideoTaskInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVideoTaskInfoResult::~QueryVideoTaskInfoResult()
{}
void QueryVideoTaskInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNo"].isNull())
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["listItem"];
for (auto dataNodeListlistItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListlistItem["TaskUuid"].isNull())
listItemObject.taskUuid = dataNodeListlistItem["TaskUuid"].asString();
if(!dataNodeListlistItem["Title"].isNull())
listItemObject.title = dataNodeListlistItem["Title"].asString();
if(!dataNodeListlistItem["Type"].isNull())
listItemObject.type = std::stoi(dataNodeListlistItem["Type"].asString());
if(!dataNodeListlistItem["Status"].isNull())
listItemObject.status = std::stoi(dataNodeListlistItem["Status"].asString());
auto taskResultNode = value["TaskResult"];
if(!taskResultNode["VideoUrl"].isNull())
listItemObject.taskResult.videoUrl = taskResultNode["VideoUrl"].asString();
if(!taskResultNode["SubtitlesUrl"].isNull())
listItemObject.taskResult.subtitlesUrl = taskResultNode["SubtitlesUrl"].asString();
if(!taskResultNode["WordSubtitlesUrl"].isNull())
listItemObject.taskResult.wordSubtitlesUrl = taskResultNode["WordSubtitlesUrl"].asString();
if(!taskResultNode["VideoDuration"].isNull())
listItemObject.taskResult.videoDuration = std::stoi(taskResultNode["VideoDuration"].asString());
if(!taskResultNode["FailReason"].isNull())
listItemObject.taskResult.failReason = taskResultNode["FailReason"].asString();
if(!taskResultNode["FailCode"].isNull())
listItemObject.taskResult.failCode = taskResultNode["FailCode"].asString();
if(!taskResultNode["AlphaUrl"].isNull())
listItemObject.taskResult.alphaUrl = taskResultNode["AlphaUrl"].asString();
if(!taskResultNode["PreviewPic"].isNull())
listItemObject.taskResult.previewPic = taskResultNode["PreviewPic"].asString();
data_.list.push_back(listItemObject);
}
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();
}
std::string QueryVideoTaskInfoResult::getMessage()const
{
return message_;
}
QueryVideoTaskInfoResult::Data QueryVideoTaskInfoResult::getData()const
{
return data_;
}
std::string QueryVideoTaskInfoResult::getCode()const
{
return code_;
}
bool QueryVideoTaskInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -44,6 +44,8 @@ public:
void setVersion(const std::string &version);
long getChildInstanceOwnerId() const;
void setChildInstanceOwnerId(long childInstanceOwnerId);
std::string getAcceptLanguage() const;
void setAcceptLanguage(const std::string &acceptLanguage);
private:
long resourceOwnerId_;
@@ -53,6 +55,7 @@ private:
long ownerId_;
std::string version_;
long childInstanceOwnerId_;
std::string acceptLanguage_;
};
} // namespace Model
} // namespace Cbn

View File

@@ -88,3 +88,12 @@ void DescribeChildInstanceRegionsRequest::setChildInstanceOwnerId(long childInst
setParameter(std::string("ChildInstanceOwnerId"), std::to_string(childInstanceOwnerId));
}
std::string DescribeChildInstanceRegionsRequest::getAcceptLanguage() const {
return acceptLanguage_;
}
void DescribeChildInstanceRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
acceptLanguage_ = acceptLanguage;
setParameter(std::string("AcceptLanguage"), acceptLanguage);
}

View File

@@ -79,6 +79,8 @@ set(config_public_header_model
include/alibabacloud/config/model/DeleteConfigRulesResult.h
include/alibabacloud/config/model/DeleteRemediationsRequest.h
include/alibabacloud/config/model/DeleteRemediationsResult.h
include/alibabacloud/config/model/DescribeRemediationRequest.h
include/alibabacloud/config/model/DescribeRemediationResult.h
include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h
include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h
include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h
@@ -358,6 +360,8 @@ set(config_src
src/model/DeleteConfigRulesResult.cc
src/model/DeleteRemediationsRequest.cc
src/model/DeleteRemediationsResult.cc
src/model/DescribeRemediationRequest.cc
src/model/DescribeRemediationResult.cc
src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc
src/model/DetachAggregateConfigRuleToCompliancePackResult.cc
src/model/DetachConfigRuleToCompliancePackRequest.cc

View File

@@ -80,6 +80,8 @@
#include "model/DeleteConfigRulesResult.h"
#include "model/DeleteRemediationsRequest.h"
#include "model/DeleteRemediationsResult.h"
#include "model/DescribeRemediationRequest.h"
#include "model/DescribeRemediationResult.h"
#include "model/DetachAggregateConfigRuleToCompliancePackRequest.h"
#include "model/DetachAggregateConfigRuleToCompliancePackResult.h"
#include "model/DetachConfigRuleToCompliancePackRequest.h"
@@ -394,6 +396,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteRemediationsResult> DeleteRemediationsOutcome;
typedef std::future<DeleteRemediationsOutcome> DeleteRemediationsOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::DeleteRemediationsRequest&, const DeleteRemediationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRemediationsAsyncHandler;
typedef Outcome<Error, Model::DescribeRemediationResult> DescribeRemediationOutcome;
typedef std::future<DescribeRemediationOutcome> DescribeRemediationOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::DescribeRemediationRequest&, const DescribeRemediationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRemediationAsyncHandler;
typedef Outcome<Error, Model::DetachAggregateConfigRuleToCompliancePackResult> DetachAggregateConfigRuleToCompliancePackOutcome;
typedef std::future<DetachAggregateConfigRuleToCompliancePackOutcome> DetachAggregateConfigRuleToCompliancePackOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::DetachAggregateConfigRuleToCompliancePackRequest&, const DetachAggregateConfigRuleToCompliancePackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachAggregateConfigRuleToCompliancePackAsyncHandler;
@@ -813,6 +818,9 @@ namespace AlibabaCloud
DeleteRemediationsOutcome deleteRemediations(const Model::DeleteRemediationsRequest &request)const;
void deleteRemediationsAsync(const Model::DeleteRemediationsRequest& request, const DeleteRemediationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRemediationsOutcomeCallable deleteRemediationsCallable(const Model::DeleteRemediationsRequest& request) const;
DescribeRemediationOutcome describeRemediation(const Model::DescribeRemediationRequest &request)const;
void describeRemediationAsync(const Model::DescribeRemediationRequest& request, const DescribeRemediationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRemediationOutcomeCallable describeRemediationCallable(const Model::DescribeRemediationRequest& request) const;
DetachAggregateConfigRuleToCompliancePackOutcome detachAggregateConfigRuleToCompliancePack(const Model::DetachAggregateConfigRuleToCompliancePackRequest &request)const;
void detachAggregateConfigRuleToCompliancePackAsync(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachAggregateConfigRuleToCompliancePackOutcomeCallable detachAggregateConfigRuleToCompliancePackCallable(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request) const;

View File

@@ -70,6 +70,8 @@ public:
void setFolderIdsScope(const std::string &folderIdsScope);
std::string getExcludeResourceIdsScope() const;
void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope);
std::string getConditions() const;
void setConditions(const std::string &conditions);
private:
std::string tagKeyScope_;
@@ -92,6 +94,7 @@ private:
std::string maximumExecutionFrequency_;
std::string folderIdsScope_;
std::string excludeResourceIdsScope_;
std::string conditions_;
};
} // namespace Model
} // namespace Config

View File

@@ -62,6 +62,8 @@ public:
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
std::string getExcludeResourceIdsScope() const;
void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope);
std::string getConditions() const;
void setConditions(const std::string &conditions);
private:
std::string tagKeyScope_;
@@ -80,6 +82,7 @@ private:
std::string tagKeyLogicScope_;
std::string maximumExecutionFrequency_;
std::string excludeResourceIdsScope_;
std::string conditions_;
};
} // namespace Model
} // namespace Config

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeRemediationRequest : public RpcServiceRequest {
public:
DescribeRemediationRequest();
~DescribeRemediationRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
std::string getRemediationId() const;
void setRemediationId(const std::string &remediationId);
private:
std::string configRuleId_;
std::string remediationId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONRESULT_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeRemediationResult : public ServiceResult
{
public:
struct Remediation
{
std::string lastSuccessfulInvocationType;
std::string configRuleId;
std::string remediationTemplateId;
long accountId;
std::string remediationSourceType;
long lastSuccessfulInvocationTime;
std::string invokeType;
std::string remediationOriginParams;
std::string remediationId;
std::string lastSuccessfulInvocationId;
std::string remediationDynamicParams;
std::string remediationType;
};
DescribeRemediationResult();
explicit DescribeRemediationResult(const std::string &payload);
~DescribeRemediationResult();
Remediation getRemediation()const;
protected:
void parse(const std::string &payload);
private:
Remediation remediation_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEREMEDIATIONRESULT_H_

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
std::string identifier;
std::vector<std::string> sourceConditions;
std::vector<SourceDetailsItem> sourceDetails;
std::string conditions;
};
struct ManagedRule
{

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
std::string identifier;
std::vector<std::string> sourceConditions;
std::vector<SourceDetailsItem> sourceDetails;
std::string conditions;
};
struct ManagedRule
{

View File

@@ -37,7 +37,7 @@ namespace AlibabaCloud
struct ResourceRelationListItem
{
std::string targetResourceType;
int accountId;
long accountId;
std::string targetResourceId;
std::string relationType;
std::string sourceResourceRegionId;

View File

@@ -68,6 +68,8 @@ public:
void setFolderIdsScope(const std::string &folderIdsScope);
std::string getExcludeResourceIdsScope() const;
void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope);
std::string getConditions() const;
void setConditions(const std::string &conditions);
private:
std::string configRuleId_;
@@ -89,6 +91,7 @@ private:
std::string maximumExecutionFrequency_;
std::string folderIdsScope_;
std::string excludeResourceIdsScope_;
std::string conditions_;
};
} // namespace Model
} // namespace Config

View File

@@ -60,6 +60,8 @@ public:
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
std::string getExcludeResourceIdsScope() const;
void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope);
std::string getConditions() const;
void setConditions(const std::string &conditions);
private:
std::string configRuleId_;
@@ -77,6 +79,7 @@ private:
std::string tagKeyLogicScope_;
std::string maximumExecutionFrequency_;
std::string excludeResourceIdsScope_;
std::string conditions_;
};
} // namespace Model
} // namespace Config

View File

@@ -1095,6 +1095,42 @@ ConfigClient::DeleteRemediationsOutcomeCallable ConfigClient::deleteRemediations
return task->get_future();
}
ConfigClient::DescribeRemediationOutcome ConfigClient::describeRemediation(const DescribeRemediationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRemediationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRemediationOutcome(DescribeRemediationResult(outcome.result()));
else
return DescribeRemediationOutcome(outcome.error());
}
void ConfigClient::describeRemediationAsync(const DescribeRemediationRequest& request, const DescribeRemediationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRemediation(request), context);
};
asyncExecute(new Runnable(fn));
}
ConfigClient::DescribeRemediationOutcomeCallable ConfigClient::describeRemediationCallable(const DescribeRemediationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRemediationOutcome()>>(
[this, request]()
{
return this->describeRemediation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcome ConfigClient::detachAggregateConfigRuleToCompliancePack(const DetachAggregateConfigRuleToCompliancePackRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -207,3 +207,12 @@ void CreateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::str
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}
std::string CreateAggregateConfigRuleRequest::getConditions() const {
return conditions_;
}
void CreateAggregateConfigRuleRequest::setConditions(const std::string &conditions) {
conditions_ = conditions;
setBodyParameter(std::string("Conditions"), conditions);
}

View File

@@ -171,3 +171,12 @@ void CreateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excl
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}
std::string CreateConfigRuleRequest::getConditions() const {
return conditions_;
}
void CreateConfigRuleRequest::setConditions(const std::string &conditions) {
conditions_ = conditions;
setBodyParameter(std::string("Conditions"), conditions);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/DescribeRemediationRequest.h>
using AlibabaCloud::Config::Model::DescribeRemediationRequest;
DescribeRemediationRequest::DescribeRemediationRequest()
: RpcServiceRequest("config", "2020-09-07", "DescribeRemediation") {
setMethod(HttpRequest::Method::Get);
}
DescribeRemediationRequest::~DescribeRemediationRequest() {}
std::string DescribeRemediationRequest::getConfigRuleId() const {
return configRuleId_;
}
void DescribeRemediationRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setParameter(std::string("ConfigRuleId"), configRuleId);
}
std::string DescribeRemediationRequest::getRemediationId() const {
return remediationId_;
}
void DescribeRemediationRequest::setRemediationId(const std::string &remediationId) {
remediationId_ = remediationId;
setParameter(std::string("RemediationId"), remediationId);
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/DescribeRemediationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Config;
using namespace AlibabaCloud::Config::Model;
DescribeRemediationResult::DescribeRemediationResult() :
ServiceResult()
{}
DescribeRemediationResult::DescribeRemediationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRemediationResult::~DescribeRemediationResult()
{}
void DescribeRemediationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto remediationNode = value["Remediation"];
if(!remediationNode["LastSuccessfulInvocationType"].isNull())
remediation_.lastSuccessfulInvocationType = remediationNode["LastSuccessfulInvocationType"].asString();
if(!remediationNode["RemediationTemplateId"].isNull())
remediation_.remediationTemplateId = remediationNode["RemediationTemplateId"].asString();
if(!remediationNode["RemediationDynamicParams"].isNull())
remediation_.remediationDynamicParams = remediationNode["RemediationDynamicParams"].asString();
if(!remediationNode["RemediationOriginParams"].isNull())
remediation_.remediationOriginParams = remediationNode["RemediationOriginParams"].asString();
if(!remediationNode["RemediationId"].isNull())
remediation_.remediationId = remediationNode["RemediationId"].asString();
if(!remediationNode["RemediationSourceType"].isNull())
remediation_.remediationSourceType = remediationNode["RemediationSourceType"].asString();
if(!remediationNode["RemediationType"].isNull())
remediation_.remediationType = remediationNode["RemediationType"].asString();
if(!remediationNode["LastSuccessfulInvocationId"].isNull())
remediation_.lastSuccessfulInvocationId = remediationNode["LastSuccessfulInvocationId"].asString();
if(!remediationNode["AccountId"].isNull())
remediation_.accountId = std::stol(remediationNode["AccountId"].asString());
if(!remediationNode["InvokeType"].isNull())
remediation_.invokeType = remediationNode["InvokeType"].asString();
if(!remediationNode["ConfigRuleId"].isNull())
remediation_.configRuleId = remediationNode["ConfigRuleId"].asString();
if(!remediationNode["LastSuccessfulInvocationTime"].isNull())
remediation_.lastSuccessfulInvocationTime = std::stol(remediationNode["LastSuccessfulInvocationTime"].asString());
}
DescribeRemediationResult::Remediation DescribeRemediationResult::getRemediation()const
{
return remediation_;
}

View File

@@ -91,6 +91,8 @@ void GetAggregateConfigRuleResult::parse(const std::string &payload)
configRule_.source.owner = sourceNode["Owner"].asString();
if(!sourceNode["Identifier"].isNull())
configRule_.source.identifier = sourceNode["Identifier"].asString();
if(!sourceNode["Conditions"].isNull())
configRule_.source.conditions = sourceNode["Conditions"].asString();
auto allSourceDetailsNode = sourceNode["SourceDetails"]["SourceDetailsItem"];
for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode)
{

View File

@@ -85,19 +85,21 @@ void GetConfigRuleResult::parse(const std::string &payload)
configRule_.source.owner = sourceNode["Owner"].asString();
if(!sourceNode["Identifier"].isNull())
configRule_.source.identifier = sourceNode["Identifier"].asString();
auto allSourceDetailsNode = sourceNode["SourceDetails"]["SourceDetailsItem"];
for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode)
if(!sourceNode["Conditions"].isNull())
configRule_.source.conditions = sourceNode["Conditions"].asString();
auto allSourceDetailsNode = sourceNode["SourceDetails"]["sourceDetailsItem"];
for (auto sourceNodeSourceDetailssourceDetailsItem : allSourceDetailsNode)
{
ConfigRule::Source::SourceDetailsItem sourceDetailsItemObject;
if(!sourceNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
sourceDetailsItemObject.messageType = sourceNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
if(!sourceNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
sourceDetailsItemObject.eventSource = sourceNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
if(!sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
if(!sourceNodeSourceDetailssourceDetailsItem["MessageType"].isNull())
sourceDetailsItemObject.messageType = sourceNodeSourceDetailssourceDetailsItem["MessageType"].asString();
if(!sourceNodeSourceDetailssourceDetailsItem["EventSource"].isNull())
sourceDetailsItemObject.eventSource = sourceNodeSourceDetailssourceDetailsItem["EventSource"].asString();
if(!sourceNodeSourceDetailssourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailssourceDetailsItem["MaximumExecutionFrequency"].asString();
configRule_.source.sourceDetails.push_back(sourceDetailsItemObject);
}
auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"];
auto allSourceConditions = sourceNode["SourceConditions"]["sourceConditions"];
for (auto value : allSourceConditions)
configRule_.source.sourceConditions.push_back(value.asString());
auto managedRuleNode = configRuleNode["ManagedRule"];
@@ -113,19 +115,19 @@ void GetConfigRuleResult::parse(const std::string &payload)
configRule_.managedRule.managedRuleName = managedRuleNode["ManagedRuleName"].asString();
if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull())
configRule_.managedRule.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString();
auto allSourceDetails1Node = managedRuleNode["SourceDetails"]["SourceDetailsItem"];
for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetails1Node)
auto allSourceDetails1Node = managedRuleNode["SourceDetails"]["sourceDetailsItem"];
for (auto managedRuleNodeSourceDetailssourceDetailsItem : allSourceDetails1Node)
{
ConfigRule::ManagedRule::SourceDetailsItem2 sourceDetailsItem2Object;
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
sourceDetailsItem2Object.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
sourceDetailsItem2Object.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItem2Object.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
if(!managedRuleNodeSourceDetailssourceDetailsItem["MessageType"].isNull())
sourceDetailsItem2Object.messageType = managedRuleNodeSourceDetailssourceDetailsItem["MessageType"].asString();
if(!managedRuleNodeSourceDetailssourceDetailsItem["EventSource"].isNull())
sourceDetailsItem2Object.eventSource = managedRuleNodeSourceDetailssourceDetailsItem["EventSource"].asString();
if(!managedRuleNodeSourceDetailssourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItem2Object.maximumExecutionFrequency = managedRuleNodeSourceDetailssourceDetailsItem["MaximumExecutionFrequency"].asString();
configRule_.managedRule.sourceDetails1.push_back(sourceDetailsItem2Object);
}
auto allLabels = managedRuleNode["Labels"]["Labels"];
auto allLabels = managedRuleNode["Labels"]["labels"];
for (auto value : allLabels)
configRule_.managedRule.labels.push_back(value.asString());
auto createByNode = configRuleNode["CreateBy"];
@@ -161,7 +163,7 @@ void GetConfigRuleResult::parse(const std::string &payload)
if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull())
configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString());
auto scopeNode = configRuleNode["Scope"];
auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"];
auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["complianceResourceTypes"];
for (auto value : allComplianceResourceTypes)
configRule_.scope.complianceResourceTypes.push_back(value.asString());
auto complianceNode = configRuleNode["Compliance"];

View File

@@ -51,7 +51,7 @@ void ListAggregateResourceRelationsResult::parse(const std::string &payload)
{
ResourceRelations::ResourceRelationListItem resourceRelationListItemObject;
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].isNull())
resourceRelationListItemObject.accountId = std::stoi(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString());
resourceRelationListItemObject.accountId = std::stol(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString());
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].isNull())
resourceRelationListItemObject.sourceResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].asString();
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].isNull())

View File

@@ -198,3 +198,12 @@ void UpdateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::str
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}
std::string UpdateAggregateConfigRuleRequest::getConditions() const {
return conditions_;
}
void UpdateAggregateConfigRuleRequest::setConditions(const std::string &conditions) {
conditions_ = conditions;
setBodyParameter(std::string("Conditions"), conditions);
}

View File

@@ -162,3 +162,12 @@ void UpdateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excl
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}
std::string UpdateConfigRuleRequest::getConditions() const {
return conditions_;
}
void UpdateConfigRuleRequest::setConditions(const std::string &conditions) {
conditions_ = conditions;
setBodyParameter(std::string("Conditions"), conditions);
}

View File

@@ -183,6 +183,15 @@ if(CMAKE_HOST_WIN32)
target_compile_definitions(core
PRIVATE CURL_STATICLIB
_CRT_SECURE_NO_WARNINGS)
elseif(CMAKE_HOST_APPLE)
MESSAGE(STATUS "core: include & link for MACOS")
target_include_directories(core
PRIVATE /usr/local/include)
target_link_libraries(core
/usr/local/lib/libcrypto.dylib
curl
/usr/local/lib/libjsoncpp.dylib
/usr/local/lib/libuuid.dylib )
else()
target_include_directories(core
PRIVATE /usr/include/jsoncpp)

230
csas/CMakeLists.txt Normal file
View File

@@ -0,0 +1,230 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(csas_public_header
include/alibabacloud/csas/CsasClient.h
include/alibabacloud/csas/CsasExport.h )
set(csas_public_header_model
include/alibabacloud/csas/model/AttachApplication2ConnectorRequest.h
include/alibabacloud/csas/model/AttachApplication2ConnectorResult.h
include/alibabacloud/csas/model/CreateDynamicRouteRequest.h
include/alibabacloud/csas/model/CreateDynamicRouteResult.h
include/alibabacloud/csas/model/CreatePrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/CreatePrivateAccessApplicationResult.h
include/alibabacloud/csas/model/CreatePrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/CreatePrivateAccessPolicyResult.h
include/alibabacloud/csas/model/CreatePrivateAccessTagRequest.h
include/alibabacloud/csas/model/CreatePrivateAccessTagResult.h
include/alibabacloud/csas/model/CreateUserGroupRequest.h
include/alibabacloud/csas/model/CreateUserGroupResult.h
include/alibabacloud/csas/model/DeleteDynamicRouteRequest.h
include/alibabacloud/csas/model/DeleteDynamicRouteResult.h
include/alibabacloud/csas/model/DeletePrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/DeletePrivateAccessApplicationResult.h
include/alibabacloud/csas/model/DeletePrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/DeletePrivateAccessPolicyResult.h
include/alibabacloud/csas/model/DeletePrivateAccessTagRequest.h
include/alibabacloud/csas/model/DeletePrivateAccessTagResult.h
include/alibabacloud/csas/model/DeleteUserGroupRequest.h
include/alibabacloud/csas/model/DeleteUserGroupResult.h
include/alibabacloud/csas/model/DetachApplication2ConnectorRequest.h
include/alibabacloud/csas/model/DetachApplication2ConnectorResult.h
include/alibabacloud/csas/model/GetDynamicRouteRequest.h
include/alibabacloud/csas/model/GetDynamicRouteResult.h
include/alibabacloud/csas/model/GetPrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/GetPrivateAccessApplicationResult.h
include/alibabacloud/csas/model/GetPrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/GetPrivateAccessPolicyResult.h
include/alibabacloud/csas/model/GetUserGroupRequest.h
include/alibabacloud/csas/model/GetUserGroupResult.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyResult.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessTagRequest.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessTagResult.h
include/alibabacloud/csas/model/ListConnectorsRequest.h
include/alibabacloud/csas/model/ListConnectorsResult.h
include/alibabacloud/csas/model/ListDynamicRouteRegionsRequest.h
include/alibabacloud/csas/model/ListDynamicRouteRegionsResult.h
include/alibabacloud/csas/model/ListDynamicRoutesRequest.h
include/alibabacloud/csas/model/ListDynamicRoutesResult.h
include/alibabacloud/csas/model/ListPolicesForPrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/ListPolicesForPrivateAccessApplicationResult.h
include/alibabacloud/csas/model/ListPolicesForPrivateAccessTagRequest.h
include/alibabacloud/csas/model/ListPolicesForPrivateAccessTagResult.h
include/alibabacloud/csas/model/ListPolicesForUserGroupRequest.h
include/alibabacloud/csas/model/ListPolicesForUserGroupResult.h
include/alibabacloud/csas/model/ListPrivateAccessApplicationsRequest.h
include/alibabacloud/csas/model/ListPrivateAccessApplicationsResult.h
include/alibabacloud/csas/model/ListPrivateAccessApplicationsForDynamicRouteRequest.h
include/alibabacloud/csas/model/ListPrivateAccessApplicationsForDynamicRouteResult.h
include/alibabacloud/csas/model/ListPrivateAccessPolicesRequest.h
include/alibabacloud/csas/model/ListPrivateAccessPolicesResult.h
include/alibabacloud/csas/model/ListPrivateAccessTagsRequest.h
include/alibabacloud/csas/model/ListPrivateAccessTagsResult.h
include/alibabacloud/csas/model/ListPrivateAccessTagsForDynamicRouteRequest.h
include/alibabacloud/csas/model/ListPrivateAccessTagsForDynamicRouteResult.h
include/alibabacloud/csas/model/ListTagsForPrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/ListTagsForPrivateAccessApplicationResult.h
include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyResult.h
include/alibabacloud/csas/model/ListUserGroupsRequest.h
include/alibabacloud/csas/model/ListUserGroupsResult.h
include/alibabacloud/csas/model/ListUserGroupsForPrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/ListUserGroupsForPrivateAccessPolicyResult.h
include/alibabacloud/csas/model/UpdateDynamicRouteRequest.h
include/alibabacloud/csas/model/UpdateDynamicRouteResult.h
include/alibabacloud/csas/model/UpdatePrivateAccessApplicationRequest.h
include/alibabacloud/csas/model/UpdatePrivateAccessApplicationResult.h
include/alibabacloud/csas/model/UpdatePrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/UpdatePrivateAccessPolicyResult.h
include/alibabacloud/csas/model/UpdateUserGroupRequest.h
include/alibabacloud/csas/model/UpdateUserGroupResult.h )
set(csas_src
src/CsasClient.cc
src/model/AttachApplication2ConnectorRequest.cc
src/model/AttachApplication2ConnectorResult.cc
src/model/CreateDynamicRouteRequest.cc
src/model/CreateDynamicRouteResult.cc
src/model/CreatePrivateAccessApplicationRequest.cc
src/model/CreatePrivateAccessApplicationResult.cc
src/model/CreatePrivateAccessPolicyRequest.cc
src/model/CreatePrivateAccessPolicyResult.cc
src/model/CreatePrivateAccessTagRequest.cc
src/model/CreatePrivateAccessTagResult.cc
src/model/CreateUserGroupRequest.cc
src/model/CreateUserGroupResult.cc
src/model/DeleteDynamicRouteRequest.cc
src/model/DeleteDynamicRouteResult.cc
src/model/DeletePrivateAccessApplicationRequest.cc
src/model/DeletePrivateAccessApplicationResult.cc
src/model/DeletePrivateAccessPolicyRequest.cc
src/model/DeletePrivateAccessPolicyResult.cc
src/model/DeletePrivateAccessTagRequest.cc
src/model/DeletePrivateAccessTagResult.cc
src/model/DeleteUserGroupRequest.cc
src/model/DeleteUserGroupResult.cc
src/model/DetachApplication2ConnectorRequest.cc
src/model/DetachApplication2ConnectorResult.cc
src/model/GetDynamicRouteRequest.cc
src/model/GetDynamicRouteResult.cc
src/model/GetPrivateAccessApplicationRequest.cc
src/model/GetPrivateAccessApplicationResult.cc
src/model/GetPrivateAccessPolicyRequest.cc
src/model/GetPrivateAccessPolicyResult.cc
src/model/GetUserGroupRequest.cc
src/model/GetUserGroupResult.cc
src/model/ListApplicationsForPrivateAccessPolicyRequest.cc
src/model/ListApplicationsForPrivateAccessPolicyResult.cc
src/model/ListApplicationsForPrivateAccessTagRequest.cc
src/model/ListApplicationsForPrivateAccessTagResult.cc
src/model/ListConnectorsRequest.cc
src/model/ListConnectorsResult.cc
src/model/ListDynamicRouteRegionsRequest.cc
src/model/ListDynamicRouteRegionsResult.cc
src/model/ListDynamicRoutesRequest.cc
src/model/ListDynamicRoutesResult.cc
src/model/ListPolicesForPrivateAccessApplicationRequest.cc
src/model/ListPolicesForPrivateAccessApplicationResult.cc
src/model/ListPolicesForPrivateAccessTagRequest.cc
src/model/ListPolicesForPrivateAccessTagResult.cc
src/model/ListPolicesForUserGroupRequest.cc
src/model/ListPolicesForUserGroupResult.cc
src/model/ListPrivateAccessApplicationsRequest.cc
src/model/ListPrivateAccessApplicationsResult.cc
src/model/ListPrivateAccessApplicationsForDynamicRouteRequest.cc
src/model/ListPrivateAccessApplicationsForDynamicRouteResult.cc
src/model/ListPrivateAccessPolicesRequest.cc
src/model/ListPrivateAccessPolicesResult.cc
src/model/ListPrivateAccessTagsRequest.cc
src/model/ListPrivateAccessTagsResult.cc
src/model/ListPrivateAccessTagsForDynamicRouteRequest.cc
src/model/ListPrivateAccessTagsForDynamicRouteResult.cc
src/model/ListTagsForPrivateAccessApplicationRequest.cc
src/model/ListTagsForPrivateAccessApplicationResult.cc
src/model/ListTagsForPrivateAccessPolicyRequest.cc
src/model/ListTagsForPrivateAccessPolicyResult.cc
src/model/ListUserGroupsRequest.cc
src/model/ListUserGroupsResult.cc
src/model/ListUserGroupsForPrivateAccessPolicyRequest.cc
src/model/ListUserGroupsForPrivateAccessPolicyResult.cc
src/model/UpdateDynamicRouteRequest.cc
src/model/UpdateDynamicRouteResult.cc
src/model/UpdatePrivateAccessApplicationRequest.cc
src/model/UpdatePrivateAccessApplicationResult.cc
src/model/UpdatePrivateAccessPolicyRequest.cc
src/model/UpdatePrivateAccessPolicyResult.cc
src/model/UpdateUserGroupRequest.cc
src/model/UpdateUserGroupResult.cc )
add_library(csas ${LIB_TYPE}
${csas_public_header}
${csas_public_header_model}
${csas_src})
set_target_properties(csas
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}csas
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(csas
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_CSAS_LIBRARY)
endif()
target_include_directories(csas
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(csas
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(csas
jsoncpp)
target_include_directories(csas
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(csas
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(csas
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(csas
PRIVATE /usr/include/jsoncpp)
target_link_libraries(csas
jsoncpp)
endif()
install(FILES ${csas_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/csas)
install(FILES ${csas_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/csas/model)
install(TARGETS csas
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,342 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_CSASCLIENT_H_
#define ALIBABACLOUD_CSAS_CSASCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "CsasExport.h"
#include "model/AttachApplication2ConnectorRequest.h"
#include "model/AttachApplication2ConnectorResult.h"
#include "model/CreateDynamicRouteRequest.h"
#include "model/CreateDynamicRouteResult.h"
#include "model/CreatePrivateAccessApplicationRequest.h"
#include "model/CreatePrivateAccessApplicationResult.h"
#include "model/CreatePrivateAccessPolicyRequest.h"
#include "model/CreatePrivateAccessPolicyResult.h"
#include "model/CreatePrivateAccessTagRequest.h"
#include "model/CreatePrivateAccessTagResult.h"
#include "model/CreateUserGroupRequest.h"
#include "model/CreateUserGroupResult.h"
#include "model/DeleteDynamicRouteRequest.h"
#include "model/DeleteDynamicRouteResult.h"
#include "model/DeletePrivateAccessApplicationRequest.h"
#include "model/DeletePrivateAccessApplicationResult.h"
#include "model/DeletePrivateAccessPolicyRequest.h"
#include "model/DeletePrivateAccessPolicyResult.h"
#include "model/DeletePrivateAccessTagRequest.h"
#include "model/DeletePrivateAccessTagResult.h"
#include "model/DeleteUserGroupRequest.h"
#include "model/DeleteUserGroupResult.h"
#include "model/DetachApplication2ConnectorRequest.h"
#include "model/DetachApplication2ConnectorResult.h"
#include "model/GetDynamicRouteRequest.h"
#include "model/GetDynamicRouteResult.h"
#include "model/GetPrivateAccessApplicationRequest.h"
#include "model/GetPrivateAccessApplicationResult.h"
#include "model/GetPrivateAccessPolicyRequest.h"
#include "model/GetPrivateAccessPolicyResult.h"
#include "model/GetUserGroupRequest.h"
#include "model/GetUserGroupResult.h"
#include "model/ListApplicationsForPrivateAccessPolicyRequest.h"
#include "model/ListApplicationsForPrivateAccessPolicyResult.h"
#include "model/ListApplicationsForPrivateAccessTagRequest.h"
#include "model/ListApplicationsForPrivateAccessTagResult.h"
#include "model/ListConnectorsRequest.h"
#include "model/ListConnectorsResult.h"
#include "model/ListDynamicRouteRegionsRequest.h"
#include "model/ListDynamicRouteRegionsResult.h"
#include "model/ListDynamicRoutesRequest.h"
#include "model/ListDynamicRoutesResult.h"
#include "model/ListPolicesForPrivateAccessApplicationRequest.h"
#include "model/ListPolicesForPrivateAccessApplicationResult.h"
#include "model/ListPolicesForPrivateAccessTagRequest.h"
#include "model/ListPolicesForPrivateAccessTagResult.h"
#include "model/ListPolicesForUserGroupRequest.h"
#include "model/ListPolicesForUserGroupResult.h"
#include "model/ListPrivateAccessApplicationsRequest.h"
#include "model/ListPrivateAccessApplicationsResult.h"
#include "model/ListPrivateAccessApplicationsForDynamicRouteRequest.h"
#include "model/ListPrivateAccessApplicationsForDynamicRouteResult.h"
#include "model/ListPrivateAccessPolicesRequest.h"
#include "model/ListPrivateAccessPolicesResult.h"
#include "model/ListPrivateAccessTagsRequest.h"
#include "model/ListPrivateAccessTagsResult.h"
#include "model/ListPrivateAccessTagsForDynamicRouteRequest.h"
#include "model/ListPrivateAccessTagsForDynamicRouteResult.h"
#include "model/ListTagsForPrivateAccessApplicationRequest.h"
#include "model/ListTagsForPrivateAccessApplicationResult.h"
#include "model/ListTagsForPrivateAccessPolicyRequest.h"
#include "model/ListTagsForPrivateAccessPolicyResult.h"
#include "model/ListUserGroupsRequest.h"
#include "model/ListUserGroupsResult.h"
#include "model/ListUserGroupsForPrivateAccessPolicyRequest.h"
#include "model/ListUserGroupsForPrivateAccessPolicyResult.h"
#include "model/UpdateDynamicRouteRequest.h"
#include "model/UpdateDynamicRouteResult.h"
#include "model/UpdatePrivateAccessApplicationRequest.h"
#include "model/UpdatePrivateAccessApplicationResult.h"
#include "model/UpdatePrivateAccessPolicyRequest.h"
#include "model/UpdatePrivateAccessPolicyResult.h"
#include "model/UpdateUserGroupRequest.h"
#include "model/UpdateUserGroupResult.h"
namespace AlibabaCloud
{
namespace Csas
{
class ALIBABACLOUD_CSAS_EXPORT CsasClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AttachApplication2ConnectorResult> AttachApplication2ConnectorOutcome;
typedef std::future<AttachApplication2ConnectorOutcome> AttachApplication2ConnectorOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::AttachApplication2ConnectorRequest&, const AttachApplication2ConnectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachApplication2ConnectorAsyncHandler;
typedef Outcome<Error, Model::CreateDynamicRouteResult> CreateDynamicRouteOutcome;
typedef std::future<CreateDynamicRouteOutcome> CreateDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateDynamicRouteRequest&, const CreateDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::CreatePrivateAccessApplicationResult> CreatePrivateAccessApplicationOutcome;
typedef std::future<CreatePrivateAccessApplicationOutcome> CreatePrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreatePrivateAccessApplicationRequest&, const CreatePrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::CreatePrivateAccessPolicyResult> CreatePrivateAccessPolicyOutcome;
typedef std::future<CreatePrivateAccessPolicyOutcome> CreatePrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreatePrivateAccessPolicyRequest&, const CreatePrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::CreatePrivateAccessTagResult> CreatePrivateAccessTagOutcome;
typedef std::future<CreatePrivateAccessTagOutcome> CreatePrivateAccessTagOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreatePrivateAccessTagRequest&, const CreatePrivateAccessTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePrivateAccessTagAsyncHandler;
typedef Outcome<Error, Model::CreateUserGroupResult> CreateUserGroupOutcome;
typedef std::future<CreateUserGroupOutcome> CreateUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateUserGroupRequest&, const CreateUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteDynamicRouteResult> DeleteDynamicRouteOutcome;
typedef std::future<DeleteDynamicRouteOutcome> DeleteDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeleteDynamicRouteRequest&, const DeleteDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::DeletePrivateAccessApplicationResult> DeletePrivateAccessApplicationOutcome;
typedef std::future<DeletePrivateAccessApplicationOutcome> DeletePrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeletePrivateAccessApplicationRequest&, const DeletePrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::DeletePrivateAccessPolicyResult> DeletePrivateAccessPolicyOutcome;
typedef std::future<DeletePrivateAccessPolicyOutcome> DeletePrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeletePrivateAccessPolicyRequest&, const DeletePrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::DeletePrivateAccessTagResult> DeletePrivateAccessTagOutcome;
typedef std::future<DeletePrivateAccessTagOutcome> DeletePrivateAccessTagOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeletePrivateAccessTagRequest&, const DeletePrivateAccessTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePrivateAccessTagAsyncHandler;
typedef Outcome<Error, Model::DeleteUserGroupResult> DeleteUserGroupOutcome;
typedef std::future<DeleteUserGroupOutcome> DeleteUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeleteUserGroupRequest&, const DeleteUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserGroupAsyncHandler;
typedef Outcome<Error, Model::DetachApplication2ConnectorResult> DetachApplication2ConnectorOutcome;
typedef std::future<DetachApplication2ConnectorOutcome> DetachApplication2ConnectorOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DetachApplication2ConnectorRequest&, const DetachApplication2ConnectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachApplication2ConnectorAsyncHandler;
typedef Outcome<Error, Model::GetDynamicRouteResult> GetDynamicRouteOutcome;
typedef std::future<GetDynamicRouteOutcome> GetDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetDynamicRouteRequest&, const GetDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::GetPrivateAccessApplicationResult> GetPrivateAccessApplicationOutcome;
typedef std::future<GetPrivateAccessApplicationOutcome> GetPrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetPrivateAccessApplicationRequest&, const GetPrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::GetPrivateAccessPolicyResult> GetPrivateAccessPolicyOutcome;
typedef std::future<GetPrivateAccessPolicyOutcome> GetPrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetPrivateAccessPolicyRequest&, const GetPrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::GetUserGroupResult> GetUserGroupOutcome;
typedef std::future<GetUserGroupOutcome> GetUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetUserGroupRequest&, const GetUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserGroupAsyncHandler;
typedef Outcome<Error, Model::ListApplicationsForPrivateAccessPolicyResult> ListApplicationsForPrivateAccessPolicyOutcome;
typedef std::future<ListApplicationsForPrivateAccessPolicyOutcome> ListApplicationsForPrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListApplicationsForPrivateAccessPolicyRequest&, const ListApplicationsForPrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListApplicationsForPrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::ListApplicationsForPrivateAccessTagResult> ListApplicationsForPrivateAccessTagOutcome;
typedef std::future<ListApplicationsForPrivateAccessTagOutcome> ListApplicationsForPrivateAccessTagOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListApplicationsForPrivateAccessTagRequest&, const ListApplicationsForPrivateAccessTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListApplicationsForPrivateAccessTagAsyncHandler;
typedef Outcome<Error, Model::ListConnectorsResult> ListConnectorsOutcome;
typedef std::future<ListConnectorsOutcome> ListConnectorsOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListConnectorsRequest&, const ListConnectorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConnectorsAsyncHandler;
typedef Outcome<Error, Model::ListDynamicRouteRegionsResult> ListDynamicRouteRegionsOutcome;
typedef std::future<ListDynamicRouteRegionsOutcome> ListDynamicRouteRegionsOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListDynamicRouteRegionsRequest&, const ListDynamicRouteRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDynamicRouteRegionsAsyncHandler;
typedef Outcome<Error, Model::ListDynamicRoutesResult> ListDynamicRoutesOutcome;
typedef std::future<ListDynamicRoutesOutcome> ListDynamicRoutesOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListDynamicRoutesRequest&, const ListDynamicRoutesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDynamicRoutesAsyncHandler;
typedef Outcome<Error, Model::ListPolicesForPrivateAccessApplicationResult> ListPolicesForPrivateAccessApplicationOutcome;
typedef std::future<ListPolicesForPrivateAccessApplicationOutcome> ListPolicesForPrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPolicesForPrivateAccessApplicationRequest&, const ListPolicesForPrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPolicesForPrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::ListPolicesForPrivateAccessTagResult> ListPolicesForPrivateAccessTagOutcome;
typedef std::future<ListPolicesForPrivateAccessTagOutcome> ListPolicesForPrivateAccessTagOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPolicesForPrivateAccessTagRequest&, const ListPolicesForPrivateAccessTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPolicesForPrivateAccessTagAsyncHandler;
typedef Outcome<Error, Model::ListPolicesForUserGroupResult> ListPolicesForUserGroupOutcome;
typedef std::future<ListPolicesForUserGroupOutcome> ListPolicesForUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPolicesForUserGroupRequest&, const ListPolicesForUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPolicesForUserGroupAsyncHandler;
typedef Outcome<Error, Model::ListPrivateAccessApplicationsResult> ListPrivateAccessApplicationsOutcome;
typedef std::future<ListPrivateAccessApplicationsOutcome> ListPrivateAccessApplicationsOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPrivateAccessApplicationsRequest&, const ListPrivateAccessApplicationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivateAccessApplicationsAsyncHandler;
typedef Outcome<Error, Model::ListPrivateAccessApplicationsForDynamicRouteResult> ListPrivateAccessApplicationsForDynamicRouteOutcome;
typedef std::future<ListPrivateAccessApplicationsForDynamicRouteOutcome> ListPrivateAccessApplicationsForDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPrivateAccessApplicationsForDynamicRouteRequest&, const ListPrivateAccessApplicationsForDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivateAccessApplicationsForDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::ListPrivateAccessPolicesResult> ListPrivateAccessPolicesOutcome;
typedef std::future<ListPrivateAccessPolicesOutcome> ListPrivateAccessPolicesOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPrivateAccessPolicesRequest&, const ListPrivateAccessPolicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivateAccessPolicesAsyncHandler;
typedef Outcome<Error, Model::ListPrivateAccessTagsResult> ListPrivateAccessTagsOutcome;
typedef std::future<ListPrivateAccessTagsOutcome> ListPrivateAccessTagsOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPrivateAccessTagsRequest&, const ListPrivateAccessTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivateAccessTagsAsyncHandler;
typedef Outcome<Error, Model::ListPrivateAccessTagsForDynamicRouteResult> ListPrivateAccessTagsForDynamicRouteOutcome;
typedef std::future<ListPrivateAccessTagsForDynamicRouteOutcome> ListPrivateAccessTagsForDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListPrivateAccessTagsForDynamicRouteRequest&, const ListPrivateAccessTagsForDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivateAccessTagsForDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::ListTagsForPrivateAccessApplicationResult> ListTagsForPrivateAccessApplicationOutcome;
typedef std::future<ListTagsForPrivateAccessApplicationOutcome> ListTagsForPrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListTagsForPrivateAccessApplicationRequest&, const ListTagsForPrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsForPrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::ListTagsForPrivateAccessPolicyResult> ListTagsForPrivateAccessPolicyOutcome;
typedef std::future<ListTagsForPrivateAccessPolicyOutcome> ListTagsForPrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListTagsForPrivateAccessPolicyRequest&, const ListTagsForPrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsForPrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::ListUserGroupsResult> ListUserGroupsOutcome;
typedef std::future<ListUserGroupsOutcome> ListUserGroupsOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListUserGroupsRequest&, const ListUserGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserGroupsAsyncHandler;
typedef Outcome<Error, Model::ListUserGroupsForPrivateAccessPolicyResult> ListUserGroupsForPrivateAccessPolicyOutcome;
typedef std::future<ListUserGroupsForPrivateAccessPolicyOutcome> ListUserGroupsForPrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListUserGroupsForPrivateAccessPolicyRequest&, const ListUserGroupsForPrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserGroupsForPrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::UpdateDynamicRouteResult> UpdateDynamicRouteOutcome;
typedef std::future<UpdateDynamicRouteOutcome> UpdateDynamicRouteOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::UpdateDynamicRouteRequest&, const UpdateDynamicRouteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDynamicRouteAsyncHandler;
typedef Outcome<Error, Model::UpdatePrivateAccessApplicationResult> UpdatePrivateAccessApplicationOutcome;
typedef std::future<UpdatePrivateAccessApplicationOutcome> UpdatePrivateAccessApplicationOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::UpdatePrivateAccessApplicationRequest&, const UpdatePrivateAccessApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePrivateAccessApplicationAsyncHandler;
typedef Outcome<Error, Model::UpdatePrivateAccessPolicyResult> UpdatePrivateAccessPolicyOutcome;
typedef std::future<UpdatePrivateAccessPolicyOutcome> UpdatePrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::UpdatePrivateAccessPolicyRequest&, const UpdatePrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePrivateAccessPolicyAsyncHandler;
typedef Outcome<Error, Model::UpdateUserGroupResult> UpdateUserGroupOutcome;
typedef std::future<UpdateUserGroupOutcome> UpdateUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::UpdateUserGroupRequest&, const UpdateUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateUserGroupAsyncHandler;
CsasClient(const Credentials &credentials, const ClientConfiguration &configuration);
CsasClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CsasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CsasClient();
AttachApplication2ConnectorOutcome attachApplication2Connector(const Model::AttachApplication2ConnectorRequest &request)const;
void attachApplication2ConnectorAsync(const Model::AttachApplication2ConnectorRequest& request, const AttachApplication2ConnectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachApplication2ConnectorOutcomeCallable attachApplication2ConnectorCallable(const Model::AttachApplication2ConnectorRequest& request) const;
CreateDynamicRouteOutcome createDynamicRoute(const Model::CreateDynamicRouteRequest &request)const;
void createDynamicRouteAsync(const Model::CreateDynamicRouteRequest& request, const CreateDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDynamicRouteOutcomeCallable createDynamicRouteCallable(const Model::CreateDynamicRouteRequest& request) const;
CreatePrivateAccessApplicationOutcome createPrivateAccessApplication(const Model::CreatePrivateAccessApplicationRequest &request)const;
void createPrivateAccessApplicationAsync(const Model::CreatePrivateAccessApplicationRequest& request, const CreatePrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePrivateAccessApplicationOutcomeCallable createPrivateAccessApplicationCallable(const Model::CreatePrivateAccessApplicationRequest& request) const;
CreatePrivateAccessPolicyOutcome createPrivateAccessPolicy(const Model::CreatePrivateAccessPolicyRequest &request)const;
void createPrivateAccessPolicyAsync(const Model::CreatePrivateAccessPolicyRequest& request, const CreatePrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePrivateAccessPolicyOutcomeCallable createPrivateAccessPolicyCallable(const Model::CreatePrivateAccessPolicyRequest& request) const;
CreatePrivateAccessTagOutcome createPrivateAccessTag(const Model::CreatePrivateAccessTagRequest &request)const;
void createPrivateAccessTagAsync(const Model::CreatePrivateAccessTagRequest& request, const CreatePrivateAccessTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePrivateAccessTagOutcomeCallable createPrivateAccessTagCallable(const Model::CreatePrivateAccessTagRequest& request) const;
CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const;
void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const;
DeleteDynamicRouteOutcome deleteDynamicRoute(const Model::DeleteDynamicRouteRequest &request)const;
void deleteDynamicRouteAsync(const Model::DeleteDynamicRouteRequest& request, const DeleteDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDynamicRouteOutcomeCallable deleteDynamicRouteCallable(const Model::DeleteDynamicRouteRequest& request) const;
DeletePrivateAccessApplicationOutcome deletePrivateAccessApplication(const Model::DeletePrivateAccessApplicationRequest &request)const;
void deletePrivateAccessApplicationAsync(const Model::DeletePrivateAccessApplicationRequest& request, const DeletePrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePrivateAccessApplicationOutcomeCallable deletePrivateAccessApplicationCallable(const Model::DeletePrivateAccessApplicationRequest& request) const;
DeletePrivateAccessPolicyOutcome deletePrivateAccessPolicy(const Model::DeletePrivateAccessPolicyRequest &request)const;
void deletePrivateAccessPolicyAsync(const Model::DeletePrivateAccessPolicyRequest& request, const DeletePrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePrivateAccessPolicyOutcomeCallable deletePrivateAccessPolicyCallable(const Model::DeletePrivateAccessPolicyRequest& request) const;
DeletePrivateAccessTagOutcome deletePrivateAccessTag(const Model::DeletePrivateAccessTagRequest &request)const;
void deletePrivateAccessTagAsync(const Model::DeletePrivateAccessTagRequest& request, const DeletePrivateAccessTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePrivateAccessTagOutcomeCallable deletePrivateAccessTagCallable(const Model::DeletePrivateAccessTagRequest& request) const;
DeleteUserGroupOutcome deleteUserGroup(const Model::DeleteUserGroupRequest &request)const;
void deleteUserGroupAsync(const Model::DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteUserGroupOutcomeCallable deleteUserGroupCallable(const Model::DeleteUserGroupRequest& request) const;
DetachApplication2ConnectorOutcome detachApplication2Connector(const Model::DetachApplication2ConnectorRequest &request)const;
void detachApplication2ConnectorAsync(const Model::DetachApplication2ConnectorRequest& request, const DetachApplication2ConnectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachApplication2ConnectorOutcomeCallable detachApplication2ConnectorCallable(const Model::DetachApplication2ConnectorRequest& request) const;
GetDynamicRouteOutcome getDynamicRoute(const Model::GetDynamicRouteRequest &request)const;
void getDynamicRouteAsync(const Model::GetDynamicRouteRequest& request, const GetDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDynamicRouteOutcomeCallable getDynamicRouteCallable(const Model::GetDynamicRouteRequest& request) const;
GetPrivateAccessApplicationOutcome getPrivateAccessApplication(const Model::GetPrivateAccessApplicationRequest &request)const;
void getPrivateAccessApplicationAsync(const Model::GetPrivateAccessApplicationRequest& request, const GetPrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPrivateAccessApplicationOutcomeCallable getPrivateAccessApplicationCallable(const Model::GetPrivateAccessApplicationRequest& request) const;
GetPrivateAccessPolicyOutcome getPrivateAccessPolicy(const Model::GetPrivateAccessPolicyRequest &request)const;
void getPrivateAccessPolicyAsync(const Model::GetPrivateAccessPolicyRequest& request, const GetPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPrivateAccessPolicyOutcomeCallable getPrivateAccessPolicyCallable(const Model::GetPrivateAccessPolicyRequest& request) const;
GetUserGroupOutcome getUserGroup(const Model::GetUserGroupRequest &request)const;
void getUserGroupAsync(const Model::GetUserGroupRequest& request, const GetUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserGroupOutcomeCallable getUserGroupCallable(const Model::GetUserGroupRequest& request) const;
ListApplicationsForPrivateAccessPolicyOutcome listApplicationsForPrivateAccessPolicy(const Model::ListApplicationsForPrivateAccessPolicyRequest &request)const;
void listApplicationsForPrivateAccessPolicyAsync(const Model::ListApplicationsForPrivateAccessPolicyRequest& request, const ListApplicationsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListApplicationsForPrivateAccessPolicyOutcomeCallable listApplicationsForPrivateAccessPolicyCallable(const Model::ListApplicationsForPrivateAccessPolicyRequest& request) const;
ListApplicationsForPrivateAccessTagOutcome listApplicationsForPrivateAccessTag(const Model::ListApplicationsForPrivateAccessTagRequest &request)const;
void listApplicationsForPrivateAccessTagAsync(const Model::ListApplicationsForPrivateAccessTagRequest& request, const ListApplicationsForPrivateAccessTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListApplicationsForPrivateAccessTagOutcomeCallable listApplicationsForPrivateAccessTagCallable(const Model::ListApplicationsForPrivateAccessTagRequest& request) const;
ListConnectorsOutcome listConnectors(const Model::ListConnectorsRequest &request)const;
void listConnectorsAsync(const Model::ListConnectorsRequest& request, const ListConnectorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListConnectorsOutcomeCallable listConnectorsCallable(const Model::ListConnectorsRequest& request) const;
ListDynamicRouteRegionsOutcome listDynamicRouteRegions(const Model::ListDynamicRouteRegionsRequest &request)const;
void listDynamicRouteRegionsAsync(const Model::ListDynamicRouteRegionsRequest& request, const ListDynamicRouteRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDynamicRouteRegionsOutcomeCallable listDynamicRouteRegionsCallable(const Model::ListDynamicRouteRegionsRequest& request) const;
ListDynamicRoutesOutcome listDynamicRoutes(const Model::ListDynamicRoutesRequest &request)const;
void listDynamicRoutesAsync(const Model::ListDynamicRoutesRequest& request, const ListDynamicRoutesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDynamicRoutesOutcomeCallable listDynamicRoutesCallable(const Model::ListDynamicRoutesRequest& request) const;
ListPolicesForPrivateAccessApplicationOutcome listPolicesForPrivateAccessApplication(const Model::ListPolicesForPrivateAccessApplicationRequest &request)const;
void listPolicesForPrivateAccessApplicationAsync(const Model::ListPolicesForPrivateAccessApplicationRequest& request, const ListPolicesForPrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPolicesForPrivateAccessApplicationOutcomeCallable listPolicesForPrivateAccessApplicationCallable(const Model::ListPolicesForPrivateAccessApplicationRequest& request) const;
ListPolicesForPrivateAccessTagOutcome listPolicesForPrivateAccessTag(const Model::ListPolicesForPrivateAccessTagRequest &request)const;
void listPolicesForPrivateAccessTagAsync(const Model::ListPolicesForPrivateAccessTagRequest& request, const ListPolicesForPrivateAccessTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPolicesForPrivateAccessTagOutcomeCallable listPolicesForPrivateAccessTagCallable(const Model::ListPolicesForPrivateAccessTagRequest& request) const;
ListPolicesForUserGroupOutcome listPolicesForUserGroup(const Model::ListPolicesForUserGroupRequest &request)const;
void listPolicesForUserGroupAsync(const Model::ListPolicesForUserGroupRequest& request, const ListPolicesForUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPolicesForUserGroupOutcomeCallable listPolicesForUserGroupCallable(const Model::ListPolicesForUserGroupRequest& request) const;
ListPrivateAccessApplicationsOutcome listPrivateAccessApplications(const Model::ListPrivateAccessApplicationsRequest &request)const;
void listPrivateAccessApplicationsAsync(const Model::ListPrivateAccessApplicationsRequest& request, const ListPrivateAccessApplicationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivateAccessApplicationsOutcomeCallable listPrivateAccessApplicationsCallable(const Model::ListPrivateAccessApplicationsRequest& request) const;
ListPrivateAccessApplicationsForDynamicRouteOutcome listPrivateAccessApplicationsForDynamicRoute(const Model::ListPrivateAccessApplicationsForDynamicRouteRequest &request)const;
void listPrivateAccessApplicationsForDynamicRouteAsync(const Model::ListPrivateAccessApplicationsForDynamicRouteRequest& request, const ListPrivateAccessApplicationsForDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivateAccessApplicationsForDynamicRouteOutcomeCallable listPrivateAccessApplicationsForDynamicRouteCallable(const Model::ListPrivateAccessApplicationsForDynamicRouteRequest& request) const;
ListPrivateAccessPolicesOutcome listPrivateAccessPolices(const Model::ListPrivateAccessPolicesRequest &request)const;
void listPrivateAccessPolicesAsync(const Model::ListPrivateAccessPolicesRequest& request, const ListPrivateAccessPolicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivateAccessPolicesOutcomeCallable listPrivateAccessPolicesCallable(const Model::ListPrivateAccessPolicesRequest& request) const;
ListPrivateAccessTagsOutcome listPrivateAccessTags(const Model::ListPrivateAccessTagsRequest &request)const;
void listPrivateAccessTagsAsync(const Model::ListPrivateAccessTagsRequest& request, const ListPrivateAccessTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivateAccessTagsOutcomeCallable listPrivateAccessTagsCallable(const Model::ListPrivateAccessTagsRequest& request) const;
ListPrivateAccessTagsForDynamicRouteOutcome listPrivateAccessTagsForDynamicRoute(const Model::ListPrivateAccessTagsForDynamicRouteRequest &request)const;
void listPrivateAccessTagsForDynamicRouteAsync(const Model::ListPrivateAccessTagsForDynamicRouteRequest& request, const ListPrivateAccessTagsForDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivateAccessTagsForDynamicRouteOutcomeCallable listPrivateAccessTagsForDynamicRouteCallable(const Model::ListPrivateAccessTagsForDynamicRouteRequest& request) const;
ListTagsForPrivateAccessApplicationOutcome listTagsForPrivateAccessApplication(const Model::ListTagsForPrivateAccessApplicationRequest &request)const;
void listTagsForPrivateAccessApplicationAsync(const Model::ListTagsForPrivateAccessApplicationRequest& request, const ListTagsForPrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagsForPrivateAccessApplicationOutcomeCallable listTagsForPrivateAccessApplicationCallable(const Model::ListTagsForPrivateAccessApplicationRequest& request) const;
ListTagsForPrivateAccessPolicyOutcome listTagsForPrivateAccessPolicy(const Model::ListTagsForPrivateAccessPolicyRequest &request)const;
void listTagsForPrivateAccessPolicyAsync(const Model::ListTagsForPrivateAccessPolicyRequest& request, const ListTagsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagsForPrivateAccessPolicyOutcomeCallable listTagsForPrivateAccessPolicyCallable(const Model::ListTagsForPrivateAccessPolicyRequest& request) const;
ListUserGroupsOutcome listUserGroups(const Model::ListUserGroupsRequest &request)const;
void listUserGroupsAsync(const Model::ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserGroupsOutcomeCallable listUserGroupsCallable(const Model::ListUserGroupsRequest& request) const;
ListUserGroupsForPrivateAccessPolicyOutcome listUserGroupsForPrivateAccessPolicy(const Model::ListUserGroupsForPrivateAccessPolicyRequest &request)const;
void listUserGroupsForPrivateAccessPolicyAsync(const Model::ListUserGroupsForPrivateAccessPolicyRequest& request, const ListUserGroupsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserGroupsForPrivateAccessPolicyOutcomeCallable listUserGroupsForPrivateAccessPolicyCallable(const Model::ListUserGroupsForPrivateAccessPolicyRequest& request) const;
UpdateDynamicRouteOutcome updateDynamicRoute(const Model::UpdateDynamicRouteRequest &request)const;
void updateDynamicRouteAsync(const Model::UpdateDynamicRouteRequest& request, const UpdateDynamicRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDynamicRouteOutcomeCallable updateDynamicRouteCallable(const Model::UpdateDynamicRouteRequest& request) const;
UpdatePrivateAccessApplicationOutcome updatePrivateAccessApplication(const Model::UpdatePrivateAccessApplicationRequest &request)const;
void updatePrivateAccessApplicationAsync(const Model::UpdatePrivateAccessApplicationRequest& request, const UpdatePrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePrivateAccessApplicationOutcomeCallable updatePrivateAccessApplicationCallable(const Model::UpdatePrivateAccessApplicationRequest& request) const;
UpdatePrivateAccessPolicyOutcome updatePrivateAccessPolicy(const Model::UpdatePrivateAccessPolicyRequest &request)const;
void updatePrivateAccessPolicyAsync(const Model::UpdatePrivateAccessPolicyRequest& request, const UpdatePrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePrivateAccessPolicyOutcomeCallable updatePrivateAccessPolicyCallable(const Model::UpdatePrivateAccessPolicyRequest& request) const;
UpdateUserGroupOutcome updateUserGroup(const Model::UpdateUserGroupRequest &request)const;
void updateUserGroupAsync(const Model::UpdateUserGroupRequest& request, const UpdateUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateUserGroupOutcomeCallable updateUserGroupCallable(const Model::UpdateUserGroupRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_CSAS_CSASCLIENT_H_

View File

@@ -14,27 +14,19 @@
* limitations under the License.
*/
#include <alibabacloud/ft/model/FtEagleEyeRequest.h>
#ifndef ALIBABACLOUD_CSAS_CSASEXPORT_H_
#define ALIBABACLOUD_CSAS_CSASEXPORT_H_
using AlibabaCloud::Ft::Model::FtEagleEyeRequest;
#include <alibabacloud/core/Global.h>
FtEagleEyeRequest::FtEagleEyeRequest() :
RpcServiceRequest("ft", "2018-07-13", "FtEagleEye")
{
setMethod(HttpRequest::Method::Post);
}
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_CSAS_LIBRARY)
# define ALIBABACLOUD_CSAS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_CSAS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_CSAS_EXPORT
#endif
FtEagleEyeRequest::~FtEagleEyeRequest()
{}
std::string FtEagleEyeRequest::getName()const
{
return name_;
}
void FtEagleEyeRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
#endif // !ALIBABACLOUD_CSAS_CSASEXPORT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT AttachApplication2ConnectorRequest : public RpcServiceRequest {
public:
AttachApplication2ConnectorRequest();
~AttachApplication2ConnectorRequest();
std::string getConnectorId() const;
void setConnectorId(const std::string &connectorId);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string connectorId_;
std::vector<std::string> applicationIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORREQUEST_H_

View File

@@ -14,40 +14,36 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_
#define ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_
#ifndef ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ft/FtExport.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Ft
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_FT_EXPORT FtEagleEyeResult : public ServiceResult
class ALIBABACLOUD_CSAS_EXPORT AttachApplication2ConnectorResult : public ServiceResult
{
public:
FtEagleEyeResult();
explicit FtEagleEyeResult(const std::string &payload);
~FtEagleEyeResult();
std::string getEagleEyeTraceId()const;
std::string getName()const;
AttachApplication2ConnectorResult();
explicit AttachApplication2ConnectorResult(const std::string &payload);
~AttachApplication2ConnectorResult();
protected:
void parse(const std::string &payload);
private:
std::string eagleEyeTraceId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_
#endif // !ALIBABACLOUD_CSAS_MODEL_ATTACHAPPLICATION2CONNECTORRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTEREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTEREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateDynamicRouteRequest : public RpcServiceRequest {
public:
CreateDynamicRouteRequest();
~CreateDynamicRouteRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDynamicRouteType() const;
void setDynamicRouteType(const std::string &dynamicRouteType);
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::vector<std::string> getRegionIds() const;
void setRegionIds(const std::vector<std::string> &regionIds);
int getPriority() const;
void setPriority(int priority);
std::string getNextHop() const;
void setNextHop(const std::string &nextHop);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getName() const;
void setName(const std::string &name);
std::string getApplicationType() const;
void setApplicationType(const std::string &applicationType);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::string description_;
std::string sourceIp_;
std::string dynamicRouteType_;
std::vector<std::string> tagIds_;
std::vector<std::string> regionIds_;
int priority_;
std::string nextHop_;
std::vector<std::string> applicationIds_;
std::string name_;
std::string applicationType_;
std::string status_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTERESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateDynamicRouteResult : public ServiceResult
{
public:
CreateDynamicRouteResult();
explicit CreateDynamicRouteResult(const std::string &payload);
~CreateDynamicRouteResult();
std::string getDynamicRouteId()const;
protected:
void parse(const std::string &payload);
private:
std::string dynamicRouteId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEDYNAMICROUTERESULT_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessApplicationRequest : public RpcServiceRequest {
public:
struct PortRanges {
int end;
int begin;
};
CreatePrivateAccessApplicationRequest();
~CreatePrivateAccessApplicationRequest();
std::vector<std::string> getAddresses() const;
void setAddresses(const std::vector<std::string> &addresses);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getProtocol() const;
void setProtocol(const std::string &protocol);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::vector<PortRanges> getPortRanges() const;
void setPortRanges(const std::vector<PortRanges> &portRanges);
std::string getName() const;
void setName(const std::string &name);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::vector<std::string> addresses_;
std::string description_;
std::string protocol_;
std::string sourceIp_;
std::vector<std::string> tagIds_;
std::vector<PortRanges> portRanges_;
std::string name_;
std::string status_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessApplicationResult : public ServiceResult
{
public:
CreatePrivateAccessApplicationResult();
explicit CreatePrivateAccessApplicationResult(const std::string &payload);
~CreatePrivateAccessApplicationResult();
std::string getApplicationId()const;
protected:
void parse(const std::string &payload);
private:
std::string applicationId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSAPPLICATIONRESULT_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessPolicyRequest : public RpcServiceRequest {
public:
struct CustomUserAttributes {
std::string userGroupType;
int idpId;
std::string value;
std::string relation;
};
CreatePrivateAccessPolicyRequest();
~CreatePrivateAccessPolicyRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::vector<CustomUserAttributes> getCustomUserAttributes() const;
void setCustomUserAttributes(const std::vector<CustomUserAttributes> &customUserAttributes);
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::vector<std::string> getUserGroupIds() const;
void setUserGroupIds(const std::vector<std::string> &userGroupIds);
std::string getPolicyAction() const;
void setPolicyAction(const std::string &policyAction);
int getPriority() const;
void setPriority(int priority);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getUserGroupMode() const;
void setUserGroupMode(const std::string &userGroupMode);
std::string getName() const;
void setName(const std::string &name);
std::string getApplicationType() const;
void setApplicationType(const std::string &applicationType);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::string description_;
std::string sourceIp_;
std::vector<CustomUserAttributes> customUserAttributes_;
std::vector<std::string> tagIds_;
std::vector<std::string> userGroupIds_;
std::string policyAction_;
int priority_;
std::vector<std::string> applicationIds_;
std::string userGroupMode_;
std::string name_;
std::string applicationType_;
std::string status_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessPolicyResult : public ServiceResult
{
public:
CreatePrivateAccessPolicyResult();
explicit CreatePrivateAccessPolicyResult(const std::string &payload);
~CreatePrivateAccessPolicyResult();
std::string getPolicyId()const;
protected:
void parse(const std::string &payload);
private:
std::string policyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSPOLICYRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessTagRequest : public RpcServiceRequest {
public:
CreatePrivateAccessTagRequest();
~CreatePrivateAccessTagRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getName() const;
void setName(const std::string &name);
private:
std::string description_;
std::string sourceIp_;
std::string name_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreatePrivateAccessTagResult : public ServiceResult
{
public:
CreatePrivateAccessTagResult();
explicit CreatePrivateAccessTagResult(const std::string &payload);
~CreatePrivateAccessTagResult();
std::string getTagId()const;
protected:
void parse(const std::string &payload);
private:
std::string tagId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEPRIVATEACCESSTAGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateUserGroupRequest : public RpcServiceRequest {
public:
struct Attributes {
std::string userGroupType;
int idpId;
std::string value;
std::string relation;
};
CreateUserGroupRequest();
~CreateUserGroupRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getName() const;
void setName(const std::string &name);
std::vector<Attributes> getAttributes() const;
void setAttributes(const std::vector<Attributes> &attributes);
private:
std::string description_;
std::string sourceIp_;
std::string name_;
std::vector<Attributes> attributes_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateUserGroupResult : public ServiceResult
{
public:
CreateUserGroupResult();
explicit CreateUserGroupResult(const std::string &payload);
~CreateUserGroupResult();
std::string getUserGroupId()const;
protected:
void parse(const std::string &payload);
private:
std::string userGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEUSERGROUPRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTEREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTEREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DeleteDynamicRouteRequest : public RpcServiceRequest {
public:
DeleteDynamicRouteRequest();
~DeleteDynamicRouteRequest();
std::string getDynamicRouteId() const;
void setDynamicRouteId(const std::string &dynamicRouteId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string dynamicRouteId_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTERESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DeleteDynamicRouteResult : public ServiceResult
{
public:
DeleteDynamicRouteResult();
explicit DeleteDynamicRouteResult(const std::string &payload);
~DeleteDynamicRouteResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEDYNAMICROUTERESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessApplicationRequest : public RpcServiceRequest {
public:
DeletePrivateAccessApplicationRequest();
~DeletePrivateAccessApplicationRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getApplicationId() const;
void setApplicationId(const std::string &applicationId);
private:
std::string sourceIp_;
std::string applicationId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessApplicationResult : public ServiceResult
{
public:
DeletePrivateAccessApplicationResult();
explicit DeletePrivateAccessApplicationResult(const std::string &payload);
~DeletePrivateAccessApplicationResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSAPPLICATIONRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessPolicyRequest : public RpcServiceRequest {
public:
DeletePrivateAccessPolicyRequest();
~DeletePrivateAccessPolicyRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getPolicyId() const;
void setPolicyId(const std::string &policyId);
private:
std::string sourceIp_;
std::string policyId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessPolicyResult : public ServiceResult
{
public:
DeletePrivateAccessPolicyResult();
explicit DeletePrivateAccessPolicyResult(const std::string &payload);
~DeletePrivateAccessPolicyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSPOLICYRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessTagRequest : public RpcServiceRequest {
public:
DeletePrivateAccessTagRequest();
~DeletePrivateAccessTagRequest();
std::string getTagId() const;
void setTagId(const std::string &tagId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string tagId_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DeletePrivateAccessTagResult : public ServiceResult
{
public:
DeletePrivateAccessTagResult();
explicit DeletePrivateAccessTagResult(const std::string &payload);
~DeletePrivateAccessTagResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEPRIVATEACCESSTAGRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DeleteUserGroupRequest : public RpcServiceRequest {
public:
DeleteUserGroupRequest();
~DeleteUserGroupRequest();
std::string getUserGroupId() const;
void setUserGroupId(const std::string &userGroupId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string userGroupId_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DeleteUserGroupResult : public ServiceResult
{
public:
DeleteUserGroupResult();
explicit DeleteUserGroupResult(const std::string &payload);
~DeleteUserGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEUSERGROUPRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT DetachApplication2ConnectorRequest : public RpcServiceRequest {
public:
DetachApplication2ConnectorRequest();
~DetachApplication2ConnectorRequest();
std::string getConnectorId() const;
void setConnectorId(const std::string &connectorId);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string connectorId_;
std::vector<std::string> applicationIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT DetachApplication2ConnectorResult : public ServiceResult
{
public:
DetachApplication2ConnectorResult();
explicit DetachApplication2ConnectorResult(const std::string &payload);
~DetachApplication2ConnectorResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_DETACHAPPLICATION2CONNECTORRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTEREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTEREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetDynamicRouteRequest : public RpcServiceRequest {
public:
GetDynamicRouteRequest();
~GetDynamicRouteRequest();
std::string getDynamicRouteId() const;
void setDynamicRouteId(const std::string &dynamicRouteId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string dynamicRouteId_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTEREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTERESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetDynamicRouteResult : public ServiceResult
{
public:
struct DynamicRoute
{
std::string status;
std::string applicationType;
std::string description;
std::vector<std::string> tagIds;
std::vector<std::string> regionIds;
int priority;
std::string nextHop;
std::vector<std::string> applicationIds;
std::string createTime;
std::string dynamicRouteId;
std::string dynamicRouteType;
std::string name;
};
GetDynamicRouteResult();
explicit GetDynamicRouteResult(const std::string &payload);
~GetDynamicRouteResult();
DynamicRoute getDynamicRoute()const;
protected:
void parse(const std::string &payload);
private:
DynamicRoute dynamicRoute_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETDYNAMICROUTERESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetPrivateAccessApplicationRequest : public RpcServiceRequest {
public:
GetPrivateAccessApplicationRequest();
~GetPrivateAccessApplicationRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getApplicationId() const;
void setApplicationId(const std::string &applicationId);
private:
std::string sourceIp_;
std::string applicationId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONREQUEST_H_

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetPrivateAccessApplicationResult : public ServiceResult
{
public:
struct Application
{
struct PortRange
{
int begin;
int end;
};
std::string status;
std::vector<std::string> addresses;
std::string description;
std::vector<std::string> tagIds;
std::vector<PortRange> portRanges;
std::string createTime;
std::vector<std::string> policyIds;
std::vector<std::string> connectorIds;
std::string applicationId;
std::string protocol;
std::string name;
};
GetPrivateAccessApplicationResult();
explicit GetPrivateAccessApplicationResult(const std::string &payload);
~GetPrivateAccessApplicationResult();
Application getApplication()const;
protected:
void parse(const std::string &payload);
private:
Application application_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSAPPLICATIONRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetPrivateAccessPolicyRequest : public RpcServiceRequest {
public:
GetPrivateAccessPolicyRequest();
~GetPrivateAccessPolicyRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getPolicyId() const;
void setPolicyId(const std::string &policyId);
private:
std::string sourceIp_;
std::string policyId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetPrivateAccessPolicyResult : public ServiceResult
{
public:
struct Policy
{
struct CustomUserAttribute
{
std::string relation;
int idpId;
std::string userGroupType;
std::string value;
};
std::vector<CustomUserAttribute> customUserAttributes;
std::string status;
std::string description;
std::vector<std::string> tagIds;
int priority;
std::vector<std::string> applicationIds;
std::string createTime;
std::string name;
std::string userGroupMode;
std::string applicationType;
std::vector<std::string> userGroupIds;
std::string policyAction;
std::string policyId;
};
GetPrivateAccessPolicyResult();
explicit GetPrivateAccessPolicyResult(const std::string &payload);
~GetPrivateAccessPolicyResult();
Policy getPolicy()const;
protected:
void parse(const std::string &payload);
private:
Policy policy_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETPRIVATEACCESSPOLICYRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetUserGroupRequest : public RpcServiceRequest {
public:
GetUserGroupRequest();
~GetUserGroupRequest();
std::string getUserGroupId() const;
void setUserGroupId(const std::string &userGroupId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string userGroupId_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetUserGroupResult : public ServiceResult
{
public:
struct UserGroup
{
struct Attribute
{
std::string relation;
int idpId;
std::string userGroupType;
std::string value;
};
std::string description;
std::string userGroupId;
std::string createTime;
std::vector<Attribute> attributes;
std::string name;
};
GetUserGroupResult();
explicit GetUserGroupResult(const std::string &payload);
~GetUserGroupResult();
UserGroup getUserGroup()const;
protected:
void parse(const std::string &payload);
private:
UserGroup userGroup_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETUSERGROUPRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListApplicationsForPrivateAccessPolicyRequest : public RpcServiceRequest {
public:
ListApplicationsForPrivateAccessPolicyRequest();
~ListApplicationsForPrivateAccessPolicyRequest();
std::vector<std::string> getPolicyIds() const;
void setPolicyIds(const std::vector<std::string> &policyIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::vector<std::string> policyIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListApplicationsForPrivateAccessPolicyResult : public ServiceResult
{
public:
struct Policy
{
struct Application
{
struct PortRange
{
int begin;
int end;
};
std::string status;
std::vector<std::string> addresses;
std::string description;
std::vector<Application::PortRange> portRanges;
std::string createTime;
std::string applicationId;
std::string protocol;
std::string name;
};
std::vector<Policy::Application> applications;
std::string policyId;
};
ListApplicationsForPrivateAccessPolicyResult();
explicit ListApplicationsForPrivateAccessPolicyResult(const std::string &payload);
~ListApplicationsForPrivateAccessPolicyResult();
std::vector<Policy> getPolices()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Policy> polices_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSPOLICYRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListApplicationsForPrivateAccessTagRequest : public RpcServiceRequest {
public:
ListApplicationsForPrivateAccessTagRequest();
~ListApplicationsForPrivateAccessTagRequest();
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::vector<std::string> tagIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListApplicationsForPrivateAccessTagResult : public ServiceResult
{
public:
struct Tag
{
struct Application
{
struct PortRange
{
int begin;
int end;
};
std::string status;
std::vector<std::string> addresses;
std::string description;
std::vector<Application::PortRange> portRanges;
std::string createTime;
std::string applicationId;
std::string protocol;
std::string name;
};
std::vector<Tag::Application> applications;
std::string tagId;
};
ListApplicationsForPrivateAccessTagResult();
explicit ListApplicationsForPrivateAccessTagResult(const std::string &payload);
~ListApplicationsForPrivateAccessTagResult();
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Tag> tags_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPLICATIONSFORPRIVATEACCESSTAGRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListConnectorsRequest : public RpcServiceRequest {
public:
ListConnectorsRequest();
~ListConnectorsRequest();
std::string getSwitchStatus() const;
void setSwitchStatus(const std::string &switchStatus);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
int getPageSize() const;
void setPageSize(int pageSize);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::string getName() const;
void setName(const std::string &name);
std::vector<std::string> getConnectorIds() const;
void setConnectorIds(const std::vector<std::string> &connectorIds);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::string switchStatus_;
std::string sourceIp_;
int pageSize_;
int currentPage_;
std::string name_;
std::vector<std::string> connectorIds_;
std::string status_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSREQUEST_H_

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListConnectorsResult : public ServiceResult
{
public:
struct Connector
{
struct UpgradeTime
{
std::string start;
std::string end;
};
struct Application
{
std::string applicationName;
std::string applicationId;
};
struct ConnectorClient
{
std::string publicIp;
std::string hostname;
std::string devTag;
std::string connectionStatus;
};
std::string status;
std::vector<Connector::Application> applications;
std::vector<Connector::ConnectorClient> connectorClients;
std::string createTime;
std::string regionId;
UpgradeTime upgradeTime;
std::string switchStatus;
std::string connectorId;
std::string name;
};
ListConnectorsResult();
explicit ListConnectorsResult(const std::string &payload);
~ListConnectorsResult();
std::vector<Connector> getConnectors()const;
int getTotalNum()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Connector> connectors_;
int totalNum_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTCONNECTORSRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListDynamicRouteRegionsRequest : public RpcServiceRequest {
public:
ListDynamicRouteRegionsRequest();
~ListDynamicRouteRegionsRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListDynamicRouteRegionsResult : public ServiceResult
{
public:
ListDynamicRouteRegionsResult();
explicit ListDynamicRouteRegionsResult(const std::string &payload);
~ListDynamicRouteRegionsResult();
int getTotalNum()const;
std::vector<std::string> getRegions()const;
protected:
void parse(const std::string &payload);
private:
int totalNum_;
std::vector<std::string> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTEREGIONSRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListDynamicRoutesRequest : public RpcServiceRequest {
public:
ListDynamicRoutesRequest();
~ListDynamicRoutesRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getApplicationId() const;
void setApplicationId(const std::string &applicationId);
std::vector<std::string> getDynamicRouteIds() const;
void setDynamicRouteIds(const std::vector<std::string> &dynamicRouteIds);
std::string getTagId() const;
void setTagId(const std::string &tagId);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::vector<std::string> getRegionIds() const;
void setRegionIds(const std::vector<std::string> &regionIds);
std::string getNextHop() const;
void setNextHop(const std::string &nextHop);
std::string getName() const;
void setName(const std::string &name);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::string sourceIp_;
int pageSize_;
std::string applicationId_;
std::vector<std::string> dynamicRouteIds_;
std::string tagId_;
int currentPage_;
std::vector<std::string> regionIds_;
std::string nextHop_;
std::string name_;
std::string status_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListDynamicRoutesResult : public ServiceResult
{
public:
struct DynamicRoute
{
std::string status;
std::string applicationType;
std::string description;
std::vector<std::string> tagIds;
std::vector<std::string> regionIds;
int priority;
std::string nextHop;
std::vector<std::string> applicationIds;
std::string createTime;
std::string dynamicRouteId;
std::string dynamicRouteType;
std::string name;
};
ListDynamicRoutesResult();
explicit ListDynamicRoutesResult(const std::string &payload);
~ListDynamicRoutesResult();
int getTotalNum()const;
std::vector<DynamicRoute> getDynamicRoutes()const;
protected:
void parse(const std::string &payload);
private:
int totalNum_;
std::vector<DynamicRoute> dynamicRoutes_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTDYNAMICROUTESRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListPolicesForPrivateAccessApplicationRequest : public RpcServiceRequest {
public:
ListPolicesForPrivateAccessApplicationRequest();
~ListPolicesForPrivateAccessApplicationRequest();
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::vector<std::string> applicationIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListPolicesForPrivateAccessApplicationResult : public ServiceResult
{
public:
struct Application
{
struct Policy
{
struct CustomUserAttribute
{
std::string relation;
int idpId;
std::string userGroupType;
std::string value;
};
std::vector<Policy::CustomUserAttribute> customUserAttributes;
std::string status;
std::string applicationType;
std::string description;
std::string userGroupType;
int priority;
std::string createTime;
std::string policyAction;
std::string policyId;
std::string name;
};
std::vector<Application::Policy> policies;
std::string applicationId;
};
ListPolicesForPrivateAccessApplicationResult();
explicit ListPolicesForPrivateAccessApplicationResult(const std::string &payload);
~ListPolicesForPrivateAccessApplicationResult();
std::vector<Application> getApplications()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Application> applications_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSAPPLICATIONRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT ListPolicesForPrivateAccessTagRequest : public RpcServiceRequest {
public:
ListPolicesForPrivateAccessTagRequest();
~ListPolicesForPrivateAccessTagRequest();
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::vector<std::string> tagIds_;
std::string sourceIp_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT ListPolicesForPrivateAccessTagResult : public ServiceResult
{
public:
struct Tag
{
struct Policy
{
struct CustomUserAttribute
{
std::string relation;
int idpId;
std::string userGroupType;
std::string value;
};
std::vector<Policy::CustomUserAttribute> customUserAttributes;
std::string status;
std::string applicationType;
std::string description;
std::string userGroupType;
int priority;
std::string createTime;
std::string policyAction;
std::string policyId;
std::string name;
};
std::string tagId;
std::vector<Tag::Policy> polices;
};
ListPolicesForPrivateAccessTagResult();
explicit ListPolicesForPrivateAccessTagResult(const std::string &payload);
~ListPolicesForPrivateAccessTagResult();
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Tag> tags_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LISTPOLICESFORPRIVATEACCESSTAGRESULT_H_

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