Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0ba4b2b8f | ||
|
|
fa74cc1f43 | ||
|
|
eafc1d87f5 | ||
|
|
a4b515be6c | ||
|
|
6ca39abbdc | ||
|
|
e2d0c496e9 | ||
|
|
861713f586 | ||
|
|
d1cf7d3344 | ||
|
|
b43fffae26 | ||
|
|
6010788ba3 | ||
|
|
fc0d3e912a | ||
|
|
2e42d8fa7f | ||
|
|
fe958d3794 | ||
|
|
96bab78790 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,4 +11,4 @@ examples/build/
|
||||
test/httpserver/node_modules
|
||||
test/httpserver/package-lock.json
|
||||
test/httpserver/nohup.out
|
||||
|
||||
.idea
|
||||
|
||||
54
CHANGELOG
54
CHANGELOG
@@ -1,3 +1,57 @@
|
||||
2019-04-11 Version: 1.36.2
|
||||
1, Add some new apis to manage VoD's App, such as CreateAppInfo, GetAppInfos, ListAppInfos, UpdateAppInfo, DeleteAppInfo, AttachAppPolicyToIdentity, DetachAppPolicyFromIdentity, ListAppPoliciesForIdentity and MoveAppResource.
|
||||
2, Add new apis SetMessageCallback, GetMessageCallback and DeleteMessageCallback to manage message callback configuration.
|
||||
3, Add new apis GetAttachedMedia, UpdateAttachedMediaInfos and DeleteAttachedMedia to manage attached media information.
|
||||
4, Add a new api named DeleteMultipartUpload to clean up the fragmented files generated during the upload process.
|
||||
5, Add a new field named AppId to some apis supporting the VoD App feature, such as CreateUploadVideo, SearchMedia, GetVideoInfo, GetVideoInfos; Add new fields named NonExistVideoIds and ForbiddenVideoIds to DeleteVideo api response; Add a new field named ForbiddenVideoIds to UpdateVideoInfos api response.
|
||||
6, The Editing supports multi-region and multi-materials. Add new fields named StorageLocation and RegionId in Project struct to GetEditingProject api response; Add new fields named StorageLocation, RegionId and Duration in ProjectList struct to SearchEditingProject api response; Add a new field named MaterialType to GetEditingProjectMaterials api request.
|
||||
7, Add new fields named TranscodeFileRegular, Clip and Rotate to GetTranscodeTemplateGroup api response to support the custom file path feature.
|
||||
8, Add a new field named AttachedMedia to api response to support the attached media feature.
|
||||
9, Add a new field named SubTotal to GetCategories response to show the number of sub category.
|
||||
10, Add a new field named AdditionType to GetVideoInfo and GetVideoInfos api request to fetch the custom media info and the corresponding field is CustomMediaInfo.
|
||||
|
||||
2019-04-10 Version: 1.36.1
|
||||
1, Modify DescribeBackupGatewayList DBS interface.
|
||||
|
||||
2019-04-10 Version: 1.36.0
|
||||
1, New APIs for visual service (VNC).
|
||||
2, New APIs for software management.
|
||||
3, New APIs for CPFS filesystem.
|
||||
|
||||
2019-04-09 Version: 1.35.9
|
||||
1, support service account management networkInterface function.
|
||||
|
||||
2019-04-09 Version: 1.35.8
|
||||
1, Add Apis for offline VerifySDK.
|
||||
|
||||
2019-04-08 Version: 1.35.7
|
||||
1, Modify DescribeBackupPlanList DBS interface.
|
||||
2, Modify DescribeFullBackupList DBS interface.
|
||||
3, Modify DescribeIncrementBackupList DBS interface.
|
||||
4, Modify DescribeBackupGatewayList DBS interface.
|
||||
|
||||
2019-04-08 Version: 1.35.6
|
||||
1, Add StopBackupPlan DBS interface.
|
||||
2, Add DescribeBackupPlanList DBS interface.
|
||||
3, Add DescribeFullBackupList DBS interface.
|
||||
4, Add DescribeIncrementBackupList DBS interface.
|
||||
5, Add DescribeBackupGatewayList DBS interface.
|
||||
|
||||
2019-04-04 Version: 1.35.5
|
||||
1, ScalingConf systemDisk add DiskName and Description parameters.
|
||||
2, ScalingConf dataDisk add DiskName & Description & Encrypted & KMSKeyId parameters.
|
||||
|
||||
2019-04-03 Version: 1.35.4
|
||||
1, Add interfaces related to vulnerability whitelist
|
||||
2, Add interfaces related to vulnerability auto-del configuration
|
||||
3, Add interfaces related to vulnerability fix advise
|
||||
4, Add interfaces searching and operating vulnerability
|
||||
|
||||
2019-03-29 Version: 1.35.3
|
||||
1, Add DLQ message openAPI.
|
||||
2, Add Query the subscription relational openAPI.
|
||||
3, Remove white list restrictions.
|
||||
|
||||
2019-03-28 Version: 1.35.2
|
||||
1, release bssopenapi
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ add_subdirectory(vpc)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(cloudphoto)
|
||||
add_subdirectory(ess)
|
||||
add_subdirectory(tesladam)
|
||||
add_subdirectory(cms)
|
||||
add_subdirectory(afs)
|
||||
@@ -96,7 +95,6 @@ add_subdirectory(ram)
|
||||
add_subdirectory(sts)
|
||||
add_subdirectory(gpdb)
|
||||
add_subdirectory(cr)
|
||||
add_subdirectory(finmall)
|
||||
add_subdirectory(openanalytics)
|
||||
add_subdirectory(snsuapi)
|
||||
add_subdirectory(ubsms)
|
||||
@@ -117,4 +115,8 @@ add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
add_subdirectory(bssopenapi)
|
||||
add_subdirectory(bssopenapi)
|
||||
|
||||
add_subdirectory(sas)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
20
CONTRIBUTING.md
Normal file
20
CONTRIBUTING.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Contributing to this SDK project
|
||||
|
||||
We work hard to provide a high-quality and useful SDK for Alibaba Cloud, and
|
||||
we greatly value feedback and contributions from our community. Please submit
|
||||
your [issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues) or [pull requests](https://github.com/aliyun/aliyun-openapi-cpp-sdk/pulls) through GitHub.
|
||||
|
||||
## Tips
|
||||
|
||||
- The SDK is released under the [Apache license][license]. Any code you submit
|
||||
will be released under that license. For substantial contributions, we may
|
||||
ask you to sign a [Alibaba Documentation Corporate Contributor License
|
||||
Agreement (CLA)][cla].
|
||||
- We maintain a high percentage of code coverage in our unit tests. If you make
|
||||
changes to the code, please add, update, and/or remove tests as appropriate.
|
||||
|
||||
[issues]: https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues
|
||||
[pull-requests]: https://github.com/aliyun-openapi-cpp-sdk/pulls
|
||||
[license]: http://www.apache.org/licenses/LICENSE-2.0
|
||||
[cla]: https://alibaba-cla-2018.oss-cn-beijing.aliyuncs.com/Alibaba_Documentation_Open_Source_Corporate_CLA.pdf
|
||||
[docs-readme]: https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/README.md
|
||||
@@ -1,19 +1,26 @@
|
||||
# 阿里云开发者C++工具套件
|
||||
[English](./README.md) | 简体中文
|
||||
|
||||
[](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
|
||||
[](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
欢迎使用阿里云开发者工具套件(SDK)。
|
||||
<p align="center">
|
||||
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/Aliyun.svg"></a>
|
||||
</p>
|
||||
|
||||
适用于阿里云的 C++ SDK 提供了一组现代化的 C++(C++ 11 或更高版本)接口,让您不用复杂编程即可访问云服务器、云监控等多个阿里云服务。
|
||||
<h1 align="center">Alibaba Cloud SDK for C++</h1>
|
||||
|
||||
如果您在使用SDK的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
<p align="center">
|
||||
<a href="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk"><img src="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master" alt="Travis Build Status"></a>
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
完成本文档中的操作开始使用 C++ SDK。
|
||||
|
||||
## 前提条件
|
||||
Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负载均衡、云监控等阿里云服务。这里向您介绍如何获取 Alibaba Cloud SDK for C++ 并开始调用。
|
||||
|
||||
在使用 C++ SDK 前,确保您已经:
|
||||
如果您在使用的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
|
||||
|
||||
## 环境要求
|
||||
|
||||
在使用 Alibaba Cloud SDK for C++ 前,确保您已经:
|
||||
|
||||
* 注册了阿里云账号并获取了访问密钥(AccessKey)。
|
||||
|
||||
@@ -28,7 +35,7 @@
|
||||
* 安装 CMake 3.0 或以上版本
|
||||
* 建议 4G 或以上内存
|
||||
|
||||
## 从源代码构建 SDK
|
||||
## 安装 (从源代码构建)
|
||||
|
||||
1. 从 GitHub 下载或 Git 克隆 [aliyun-openapi-cpp-sdk](https://github.com/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
@@ -82,7 +89,7 @@ sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
sudo sh easyinstall.sh
|
||||
```
|
||||
|
||||
**C++ SDK 将被安装在 `/usr`.**
|
||||
**Alibaba Cloud SDK for C++ 将被安装在 `/usr`.**
|
||||
|
||||
|
||||
### Windows
|
||||
@@ -106,13 +113,13 @@ msbuild ALL_BUILD.vcxproj
|
||||
msbuild INSTALL.vcxproj
|
||||
```
|
||||
|
||||
**C++ SDK 将安装在 `C:\Program File (x86)\alibabacloud-sdk` 目录**
|
||||
**Alibaba Cloud SDK for C++ 将安装在 `C:\Program File (x86)\alibabacloud-sdk` 目录**
|
||||
|
||||
**注意:请以管理员身份运行 Visual Studio,否则无法安装 SDK**
|
||||
|
||||
## 如何使用 C++ SDK
|
||||
## 快速使用
|
||||
|
||||
在调用 C++ SDK时,您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库,然后通过创建 Client 实例提供身份验证,并指定云服务的地域,然后发送API请求。
|
||||
在调用 Alibaba Cloud SDK for C++ 时,您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库,然后通过创建 Client 实例提供身份验证,并指定云服务的地域,然后发送API请求。
|
||||
|
||||
以下代码展示了如何调用 DescribeInstancesAPI 查询指定地域所有 ECS 实例的详细信息。
|
||||
|
||||
@@ -234,8 +241,18 @@ int main(int argc, char** argv) {
|
||||
```
|
||||
|
||||
|
||||
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
|
||||
|
||||
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples) 请(参考)[https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/examples/README_zh.md]**
|
||||
## 问题
|
||||
[提交 Issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new/choose), 不符合指南的问题可能会立即关闭。
|
||||
|
||||
## 许可协议
|
||||
请参阅 LICENSE 文件(Apache 2.0 许可证)。
|
||||
## 发行说明
|
||||
每个版本的详细更改记录在[发行说明](CHANGELOG)中。
|
||||
|
||||
## 贡献
|
||||
提交 Pull Request 之前请阅读[贡献指南](CONTRIBUTING.md)。
|
||||
|
||||
## 许可证
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
版权所有 1999-2019 阿里巴巴集团
|
||||
59
README.md
59
README.md
@@ -1,24 +1,33 @@
|
||||
# Alibaba Cloud C++ Software Development Kit
|
||||
[中文文档](./README_zh.md)
|
||||
English | [简体中文](./README-CN.md)
|
||||
|
||||
[](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
|
||||
[](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
The Alibaba Cloud C++ Software Development Kit (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
||||
<p align="center">
|
||||
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg"></a>
|
||||
</p>
|
||||
|
||||
This document introduces how to obtain and call Alibaba Cloud C++ SDK.
|
||||
<h1 align="center">Alibaba Cloud SDK for C++</h1>
|
||||
|
||||
If you have any problem while using C++ SDK, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
<p align="center">
|
||||
<a href="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk"><img src="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master" alt="Travis Build Status"></a>
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- To use Alibaba Cloud C++ SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
Alibaba Cloud SDK for C++ allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
||||
|
||||
This document introduces how to obtain and call this SDK.
|
||||
|
||||
If you have any problem while using Alibaba Cloud SDK for C++, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
|
||||
## Requirements
|
||||
|
||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
|
||||
- To use Alibaba Cloud C++ SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
|
||||
- To use this SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
|
||||
|
||||
- C++11 supported compiler installed
|
||||
- Windows: Visual Studio 2015 or newer
|
||||
@@ -26,8 +35,7 @@ If you have any problem while using C++ SDK, please submit an [issue](https://gi
|
||||
- CMake 3.0 or newer
|
||||
- 4G memory or more
|
||||
|
||||
## Install C++ SDK from source code
|
||||
|
||||
## Installation
|
||||
|
||||
### Linux
|
||||
|
||||
@@ -67,9 +75,9 @@ If you have any problem while using C++ SDK, please submit an [issue](https://gi
|
||||
sudo sh easyinstall.sh
|
||||
```
|
||||
|
||||
**The C++ SDK will be installed to `/usr`.**
|
||||
**The Alibaba Cloud SDK for C++ will be installed to `/usr`.**
|
||||
|
||||
### windows
|
||||
### Windows
|
||||
|
||||
1. Install [perl](https://www.perl.org/get.html#win32).
|
||||
|
||||
@@ -103,12 +111,12 @@ If you have any problem while using C++ SDK, please submit an [issue](https://gi
|
||||
|
||||
- Build->Build Solutions to build.
|
||||
|
||||
**SDK will be installed to `C:\Program File (x86)\alibabacloud-sdk`**
|
||||
**Alibaba Cloud SDK for C++ will be installed to `C:\Program File (x86)\alibabacloud-sdk`**
|
||||
|
||||
|
||||
## Use the C++ SDK
|
||||
## Quick Examples
|
||||
|
||||
Before using C++ SDK, you must first configure the preprocessor to define `ALIBABACLOUD_SHARED` to achieve dynamic linking with Alibaba Cloud C++ SDK shared libraries. Then you must create a client instance, specify the region of cloud services and provide authentication parameters before sending API requests.
|
||||
Before using this SDK, you must first configure the preprocessor to define `ALIBABACLOUD_SHARED` to achieve dynamic linking with the SDK shared libraries. Then you must create a client instance, specify the region of cloud services and provide authentication parameters before sending API requests.
|
||||
|
||||
The following code shows how to call the [DescribeInstances](~~25506~~) API of ECS to query detailed information of all ECS instances in a specific region.
|
||||
|
||||
@@ -222,9 +230,18 @@ int main(int argc, char** argv) {
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
**More [examples](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
|
||||
|
||||
## LICENSE
|
||||
Please refer to [LICENSE](https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/LICENSE) (Apache 2.0 LICENSE).
|
||||
## Issues
|
||||
[Opening an Issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new/choose), Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Changelog
|
||||
Detailed changes for each release are documented in the [release notes](CHANGELOG).
|
||||
|
||||
## Contribution
|
||||
Please make sure to read the [Contributing Guide](CONTRIBUTING.md) before making a pull request.
|
||||
|
||||
## License
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright 1999-2019 Alibaba Group Holding Ltd.
|
||||
|
||||
@@ -21,6 +21,8 @@ set(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
|
||||
@@ -29,13 +31,25 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusResult.h )
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetVerifyTokenRequest.cc
|
||||
@@ -44,8 +58,18 @@ set(cloudauth_src
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
src/model/SubmitMaterialsResult.cc
|
||||
src/model/SubmitVerificationRequest.cc
|
||||
src/model/SubmitVerificationResult.cc
|
||||
src/model/CreateVerifySDKRequest.cc
|
||||
src/model/CreateVerifySDKResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/DescribeVerifySDKRequest.cc
|
||||
src/model/DescribeVerifySDKResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
src/model/GetStatusResult.cc )
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
#include "model/GetMaterialsResult.h"
|
||||
#include "model/GetVerifyTokenRequest.h"
|
||||
@@ -30,8 +32,18 @@
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/CompareFacesRequest.h"
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/CreateAuthKeyRequest.h"
|
||||
#include "model/CreateAuthKeyResult.h"
|
||||
#include "model/SubmitMaterialsRequest.h"
|
||||
#include "model/SubmitMaterialsResult.h"
|
||||
#include "model/SubmitVerificationRequest.h"
|
||||
#include "model/SubmitVerificationResult.h"
|
||||
#include "model/CreateVerifySDKRequest.h"
|
||||
#include "model/CreateVerifySDKResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
#include "model/ModifyDeviceInfoResult.h"
|
||||
#include "model/DescribeVerifySDKRequest.h"
|
||||
#include "model/DescribeVerifySDKResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
#include "model/GetStatusResult.h"
|
||||
|
||||
@@ -43,6 +55,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
@@ -55,9 +70,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitVerificationRequest&, const SubmitVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitVerificationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySDKRequest&, const CreateVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySDKRequest&, const DescribeVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
|
||||
@@ -66,6 +96,9 @@ namespace AlibabaCloud
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
@@ -78,9 +111,24 @@ namespace AlibabaCloud
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
|
||||
|
||||
@@ -14,44 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_GETDOCUMENTDOWNLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_GETDOCUMENTDOWNLOADURLREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT GetDocumentDownloadUrlRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDocumentDownloadUrlRequest();
|
||||
~GetDocumentDownloadUrlRequest();
|
||||
CreateAuthKeyRequest();
|
||||
~CreateAuthKeyRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getDocumentId()const;
|
||||
void setDocumentId(const std::string& documentId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getUserDeviceId()const;
|
||||
void setUserDeviceId(const std::string& userDeviceId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
bool getTest()const;
|
||||
void setTest(bool test);
|
||||
int getAuthYears()const;
|
||||
void setAuthYears(int authYears);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string bizId_;
|
||||
std::string documentId_;
|
||||
std::string userId_;
|
||||
std::string userDeviceId_;
|
||||
std::string sourceIp_;
|
||||
bool test_;
|
||||
int authYears_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_GETDOCUMENTDOWNLOADURLREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
@@ -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_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuthKeyResult();
|
||||
explicit CreateAuthKeyResult(const std::string &payload);
|
||||
~CreateAuthKeyResult();
|
||||
std::string getAuthKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string authKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
@@ -14,41 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_GETREPAYPLANTRIALREQUEST_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_GETREPAYPLANTRIALREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT GetRepayPlanTrialRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetRepayPlanTrialRequest();
|
||||
~GetRepayPlanTrialRequest();
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
std::string getCreditId()const;
|
||||
void setCreditId(const std::string& creditId);
|
||||
std::string getProductId()const;
|
||||
void setProductId(const std::string& productId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getAppUrl()const;
|
||||
void setAppUrl(const std::string& appUrl);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
|
||||
private:
|
||||
std::string creditId_;
|
||||
std::string productId_;
|
||||
std::string userId_;
|
||||
std::string sourceIp_;
|
||||
std::string appUrl_;
|
||||
std::string lang_;
|
||||
std::string platform_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_GETREPAYPLANTRIALREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
@@ -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_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerifySDKResult();
|
||||
explicit CreateVerifySDKResult(const std::string &payload);
|
||||
~CreateVerifySDKResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeviceInfoRequest();
|
||||
~DescribeDeviceInfoRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getUserDeviceId()const;
|
||||
void setUserDeviceId(const std::string& userDeviceId);
|
||||
int getTotalCount()const;
|
||||
void setTotalCount(int totalCount);
|
||||
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 getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getExpiredEndDay()const;
|
||||
void setExpiredEndDay(const std::string& expiredEndDay);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getExpiredStartDay()const;
|
||||
void setExpiredStartDay(const std::string& expiredStartDay);
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
int totalCount_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::string lang_;
|
||||
std::string expiredEndDay_;
|
||||
std::string deviceId_;
|
||||
std::string expiredStartDay_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
@@ -14,42 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_GETOVERDUERECORDLISTRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_GETOVERDUERECORDLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT GetOverdueRecordListResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeviceInfo
|
||||
{
|
||||
std::string expiredDay;
|
||||
std::string beginDay;
|
||||
std::string deviceId;
|
||||
std::string bizType;
|
||||
std::string userDeviceId;
|
||||
};
|
||||
|
||||
|
||||
GetOverdueRecordListResult();
|
||||
explicit GetOverdueRecordListResult(const std::string &payload);
|
||||
~GetOverdueRecordListResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
DescribeDeviceInfoResult();
|
||||
explicit DescribeDeviceInfoResult(const std::string &payload);
|
||||
~DescribeDeviceInfoResult();
|
||||
std::vector<DeviceInfo> getDeviceInfoList()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
std::vector<DeviceInfo> deviceInfoList_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_GETOVERDUERECORDLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifySDKRequest();
|
||||
~DescribeVerifySDKRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
@@ -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_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifySDKResult();
|
||||
explicit DescribeVerifySDKResult(const std::string &payload);
|
||||
~DescribeVerifySDKResult();
|
||||
std::string getSdkUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sdkUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
@@ -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_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceInfoRequest();
|
||||
~ModifyDeviceInfoRequest();
|
||||
|
||||
std::string getUserDeviceId()const;
|
||||
void setUserDeviceId(const std::string& userDeviceId);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getExpiredDay()const;
|
||||
void setExpiredDay(const std::string& expiredDay);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
|
||||
private:
|
||||
std::string userDeviceId_;
|
||||
std::string bizType_;
|
||||
std::string duration_;
|
||||
std::string expiredDay_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string deviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
@@ -14,42 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_QUERYFUNDPARTYLISTRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_QUERYFUNDPARTYLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT QueryFundPartyListResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryFundPartyListResult();
|
||||
explicit QueryFundPartyListResult(const std::string &payload);
|
||||
~QueryFundPartyListResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
ModifyDeviceInfoResult();
|
||||
explicit ModifyDeviceInfoResult(const std::string &payload);
|
||||
~ModifyDeviceInfoResult();
|
||||
std::string getExpiredDay()const;
|
||||
std::string getBeginDay()const;
|
||||
std::string getDeviceId()const;
|
||||
std::string getBizType()const;
|
||||
std::string getUserDeviceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
std::string expiredDay_;
|
||||
std::string beginDay_;
|
||||
std::string deviceId_;
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_QUERYFUNDPARTYLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::vector<Material> getMaterial()const;
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
@@ -14,36 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_GETSIGNCONTRACTURLRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_GETSIGNCONTRACTURLRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT GetSignContractUrlResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string url;
|
||||
struct VerifyStatus
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
GetSignContractUrlResult();
|
||||
explicit GetSignContractUrlResult(const std::string &payload);
|
||||
~GetSignContractUrlResult();
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -51,9 +60,10 @@ namespace AlibabaCloud
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_GETSIGNCONTRACTURLRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
@@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +303,150 @@ CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterials
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CompareFacesRequest::getSourceImageType()const
|
||||
void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
|
||||
{
|
||||
sourceImageType_ = sourceImageType;
|
||||
setParameter("SourceImageType", sourceImageType);
|
||||
setCoreParameter("SourceImageType", sourceImageType);
|
||||
}
|
||||
|
||||
long CompareFacesRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CompareFacesRequest::getResourceOwnerId()const
|
||||
void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceIp()const
|
||||
@@ -55,7 +55,7 @@ std::string CompareFacesRequest::getSourceIp()const
|
||||
void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageType()const
|
||||
@@ -66,7 +66,7 @@ std::string CompareFacesRequest::getTargetImageType()const
|
||||
void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setParameter("TargetImageType", targetImageType);
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageValue()const
|
||||
@@ -77,7 +77,7 @@ std::string CompareFacesRequest::getSourceImageValue()const
|
||||
void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
|
||||
{
|
||||
sourceImageValue_ = sourceImageValue;
|
||||
setParameter("SourceImageValue", sourceImageValue);
|
||||
setCoreParameter("SourceImageValue", sourceImageValue);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageValue()const
|
||||
@@ -88,6 +88,6 @@ std::string CompareFacesRequest::getTargetImageValue()const
|
||||
void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
|
||||
{
|
||||
targetImageValue_ = targetImageValue;
|
||||
setParameter("TargetImageValue", targetImageValue);
|
||||
setCoreParameter("TargetImageValue", targetImageValue);
|
||||
}
|
||||
|
||||
|
||||
93
cloudauth/src/model/CreateAuthKeyRequest.cc
Normal file
93
cloudauth/src/model/CreateAuthKeyRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateAuthKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
|
||||
|
||||
CreateAuthKeyRequest::CreateAuthKeyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
|
||||
{}
|
||||
|
||||
CreateAuthKeyRequest::~CreateAuthKeyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAuthKeyRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
bool CreateAuthKeyRequest::getTest()const
|
||||
{
|
||||
return test_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setTest(bool test)
|
||||
{
|
||||
test_ = test;
|
||||
setCoreParameter("Test", test ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateAuthKeyRequest::getAuthYears()const
|
||||
{
|
||||
return authYears_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setAuthYears(int authYears)
|
||||
{
|
||||
authYears_ = authYears;
|
||||
setCoreParameter("AuthYears", std::to_string(authYears));
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
52
cloudauth/src/model/CreateAuthKeyResult.cc
Normal file
52
cloudauth/src/model/CreateAuthKeyResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateAuthKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAuthKeyResult::~CreateAuthKeyResult()
|
||||
{}
|
||||
|
||||
void CreateAuthKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuthKey"].isNull())
|
||||
authKey_ = value["AuthKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyResult::getAuthKey()const
|
||||
{
|
||||
return authKey_;
|
||||
}
|
||||
|
||||
71
cloudauth/src/model/CreateVerifySDKRequest.cc
Normal file
71
cloudauth/src/model/CreateVerifySDKRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
|
||||
|
||||
CreateVerifySDKRequest::CreateVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
|
||||
{}
|
||||
|
||||
CreateVerifySDKRequest::~CreateVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getAppUrl()const
|
||||
{
|
||||
return appUrl_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
|
||||
{
|
||||
appUrl_ = appUrl;
|
||||
setCoreParameter("AppUrl", appUrl);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setCoreParameter("Platform", platform);
|
||||
}
|
||||
|
||||
52
cloudauth/src/model/CreateVerifySDKResult.cc
Normal file
52
cloudauth/src/model/CreateVerifySDKResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVerifySDKResult::~CreateVerifySDKResult()
|
||||
{}
|
||||
|
||||
void CreateVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
137
cloudauth/src/model/DescribeDeviceInfoRequest.cc
Normal file
137
cloudauth/src/model/DescribeDeviceInfoRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
|
||||
|
||||
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setTotalCount(int totalCount)
|
||||
{
|
||||
totalCount_ = totalCount;
|
||||
setCoreParameter("TotalCount", std::to_string(totalCount));
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredEndDay()const
|
||||
{
|
||||
return expiredEndDay_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string& expiredEndDay)
|
||||
{
|
||||
expiredEndDay_ = expiredEndDay;
|
||||
setCoreParameter("ExpiredEndDay", expiredEndDay);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredStartDay()const
|
||||
{
|
||||
return expiredStartDay_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string& expiredStartDay)
|
||||
{
|
||||
expiredStartDay_ = expiredStartDay;
|
||||
setCoreParameter("ExpiredStartDay", expiredStartDay);
|
||||
}
|
||||
|
||||
87
cloudauth/src/model/DescribeDeviceInfoResult.cc
Normal file
87
cloudauth/src/model/DescribeDeviceInfoResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeviceInfoResult::~DescribeDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeviceInfoList = value["DeviceInfoList"]["DeviceInfo"];
|
||||
for (auto value : allDeviceInfoList)
|
||||
{
|
||||
DeviceInfo deviceInfoListObject;
|
||||
if(!value["DeviceId"].isNull())
|
||||
deviceInfoListObject.deviceId = value["DeviceId"].asString();
|
||||
if(!value["UserDeviceId"].isNull())
|
||||
deviceInfoListObject.userDeviceId = value["UserDeviceId"].asString();
|
||||
if(!value["BizType"].isNull())
|
||||
deviceInfoListObject.bizType = value["BizType"].asString();
|
||||
if(!value["BeginDay"].isNull())
|
||||
deviceInfoListObject.beginDay = value["BeginDay"].asString();
|
||||
if(!value["ExpiredDay"].isNull())
|
||||
deviceInfoListObject.expiredDay = value["ExpiredDay"].asString();
|
||||
deviceInfoList_.push_back(deviceInfoListObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDeviceInfoResult::DeviceInfo> DescribeDeviceInfoResult::getDeviceInfoList()const
|
||||
{
|
||||
return deviceInfoList_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
60
cloudauth/src/model/DescribeVerifySDKRequest.cc
Normal file
60
cloudauth/src/model/DescribeVerifySDKRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
|
||||
|
||||
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
|
||||
{}
|
||||
|
||||
DescribeVerifySDKRequest::~DescribeVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
52
cloudauth/src/model/DescribeVerifySDKResult.cc
Normal file
52
cloudauth/src/model/DescribeVerifySDKResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVerifySDKResult::~DescribeVerifySDKResult()
|
||||
{}
|
||||
|
||||
void DescribeVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SdkUrl"].isNull())
|
||||
sdkUrl_ = value["SdkUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKResult::getSdkUrl()const
|
||||
{
|
||||
return sdkUrl_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const
|
||||
void DetectFaceAttributesRequest::setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory)
|
||||
{
|
||||
maxNumPhotosPerCategory_ = maxNumPhotosPerCategory;
|
||||
setParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
|
||||
setCoreParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
|
||||
}
|
||||
|
||||
int DetectFaceAttributesRequest::getMaxFaceNum()const
|
||||
@@ -44,7 +44,7 @@ int DetectFaceAttributesRequest::getMaxFaceNum()const
|
||||
void DetectFaceAttributesRequest::setMaxFaceNum(int maxFaceNum)
|
||||
{
|
||||
maxFaceNum_ = maxFaceNum;
|
||||
setParameter("MaxFaceNum", std::to_string(maxFaceNum));
|
||||
setCoreParameter("MaxFaceNum", std::to_string(maxFaceNum));
|
||||
}
|
||||
|
||||
long DetectFaceAttributesRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long DetectFaceAttributesRequest::getResourceOwnerId()const
|
||||
void DetectFaceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getSourceIp()const
|
||||
@@ -66,7 +66,7 @@ std::string DetectFaceAttributesRequest::getSourceIp()const
|
||||
void DetectFaceAttributesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getRetAttributes()const
|
||||
@@ -77,7 +77,7 @@ std::string DetectFaceAttributesRequest::getRetAttributes()const
|
||||
void DetectFaceAttributesRequest::setRetAttributes(const std::string& retAttributes)
|
||||
{
|
||||
retAttributes_ = retAttributes;
|
||||
setParameter("RetAttributes", retAttributes);
|
||||
setCoreParameter("RetAttributes", retAttributes);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
@@ -88,7 +88,7 @@ std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialValue)
|
||||
{
|
||||
materialValue_ = materialValue;
|
||||
setParameter("MaterialValue", materialValue);
|
||||
setCoreParameter("MaterialValue", materialValue);
|
||||
}
|
||||
|
||||
bool DetectFaceAttributesRequest::getDontSaveDB()const
|
||||
@@ -99,7 +99,7 @@ bool DetectFaceAttributesRequest::getDontSaveDB()const
|
||||
void DetectFaceAttributesRequest::setDontSaveDB(bool dontSaveDB)
|
||||
{
|
||||
dontSaveDB_ = dontSaveDB;
|
||||
setParameter("DontSaveDB", std::to_string(dontSaveDB));
|
||||
setCoreParameter("DontSaveDB", dontSaveDB ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getClientTag()const
|
||||
@@ -110,6 +110,6 @@ std::string DetectFaceAttributesRequest::getClientTag()const
|
||||
void DetectFaceAttributesRequest::setClientTag(const std::string& clientTag)
|
||||
{
|
||||
clientTag_ = clientTag;
|
||||
setParameter("ClientTag", clientTag);
|
||||
setCoreParameter("ClientTag", clientTag);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ long GetMaterialsRequest::getResourceOwnerId()const
|
||||
void GetMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getBiz()const
|
||||
@@ -44,7 +44,7 @@ std::string GetMaterialsRequest::getBiz()const
|
||||
void GetMaterialsRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
setCoreParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getSourceIp()const
|
||||
@@ -55,7 +55,7 @@ std::string GetMaterialsRequest::getSourceIp()const
|
||||
void GetMaterialsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getTicketId()const
|
||||
@@ -66,6 +66,6 @@ std::string GetMaterialsRequest::getTicketId()const
|
||||
void GetMaterialsRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
setCoreParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ long GetStatusRequest::getResourceOwnerId()const
|
||||
void GetStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getBiz()const
|
||||
@@ -44,7 +44,7 @@ std::string GetStatusRequest::getBiz()const
|
||||
void GetStatusRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
setCoreParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getSourceIp()const
|
||||
@@ -55,7 +55,7 @@ std::string GetStatusRequest::getSourceIp()const
|
||||
void GetStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getTicketId()const
|
||||
@@ -66,6 +66,6 @@ std::string GetStatusRequest::getTicketId()const
|
||||
void GetStatusRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
setCoreParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ void GetStatusResult::parse(const std::string &payload)
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
if(!dataNode["AuditConclusions"].isNull())
|
||||
data_.auditConclusions = dataNode["AuditConclusions"].asString();
|
||||
if(!dataNode["AuthorityComparisonScore"].isNull())
|
||||
data_.authorityComparisonScore = std::stof(dataNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetVerifyTokenRequest::getUserData()const
|
||||
void GetVerifyTokenRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
setCoreParameter("UserData", userData);
|
||||
}
|
||||
|
||||
long GetVerifyTokenRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long GetVerifyTokenRequest::getResourceOwnerId()const
|
||||
void GetVerifyTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBiz()const
|
||||
@@ -55,7 +55,7 @@ std::string GetVerifyTokenRequest::getBiz()const
|
||||
void GetVerifyTokenRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
setCoreParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getSourceIp()const
|
||||
@@ -66,7 +66,7 @@ std::string GetVerifyTokenRequest::getSourceIp()const
|
||||
void GetVerifyTokenRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBinding()const
|
||||
@@ -77,7 +77,7 @@ std::string GetVerifyTokenRequest::getBinding()const
|
||||
void GetVerifyTokenRequest::setBinding(const std::string& binding)
|
||||
{
|
||||
binding_ = binding;
|
||||
setParameter("Binding", binding);
|
||||
setCoreParameter("Binding", binding);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getVerifyConfigs()const
|
||||
@@ -88,7 +88,7 @@ std::string GetVerifyTokenRequest::getVerifyConfigs()const
|
||||
void GetVerifyTokenRequest::setVerifyConfigs(const std::string& verifyConfigs)
|
||||
{
|
||||
verifyConfigs_ = verifyConfigs;
|
||||
setParameter("VerifyConfigs", verifyConfigs);
|
||||
setCoreParameter("VerifyConfigs", verifyConfigs);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getTicketId()const
|
||||
@@ -99,6 +99,6 @@ std::string GetVerifyTokenRequest::getTicketId()const
|
||||
void GetVerifyTokenRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
setCoreParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
|
||||
104
cloudauth/src/model/ModifyDeviceInfoRequest.cc
Normal file
104
cloudauth/src/model/ModifyDeviceInfoRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getExpiredDay()const
|
||||
{
|
||||
return expiredDay_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setExpiredDay(const std::string& expiredDay)
|
||||
{
|
||||
expiredDay_ = expiredDay;
|
||||
setCoreParameter("ExpiredDay", expiredDay);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
80
cloudauth/src/model/ModifyDeviceInfoResult.cc
Normal file
80
cloudauth/src/model/ModifyDeviceInfoResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeviceInfoResult::~ModifyDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void ModifyDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeviceId"].isNull())
|
||||
deviceId_ = value["DeviceId"].asString();
|
||||
if(!value["UserDeviceId"].isNull())
|
||||
userDeviceId_ = value["UserDeviceId"].asString();
|
||||
if(!value["BizType"].isNull())
|
||||
bizType_ = value["BizType"].asString();
|
||||
if(!value["BeginDay"].isNull())
|
||||
beginDay_ = value["BeginDay"].asString();
|
||||
if(!value["ExpiredDay"].isNull())
|
||||
expiredDay_ = value["ExpiredDay"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getExpiredDay()const
|
||||
{
|
||||
return expiredDay_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getBeginDay()const
|
||||
{
|
||||
return beginDay_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long SubmitMaterialsRequest::getResourceOwnerId()const
|
||||
void SubmitMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsRequest::getSourceIp()const
|
||||
@@ -44,7 +44,7 @@ std::string SubmitMaterialsRequest::getSourceIp()const
|
||||
void SubmitMaterialsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<SubmitMaterialsRequest::Material> SubmitMaterialsRequest::getMaterial()const
|
||||
@@ -59,8 +59,8 @@ void SubmitMaterialsRequest::setMaterial(const std::vector<Material>& material)
|
||||
for(int i = 0; i!= material.size(); i++) {
|
||||
auto obj = material.at(i);
|
||||
std::string str ="Material."+ std::to_string(i);
|
||||
setParameter(str + ".MaterialType", obj.materialType);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".MaterialType", obj.materialType);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,6 @@ std::string SubmitMaterialsRequest::getVerifyToken()const
|
||||
void SubmitMaterialsRequest::setVerifyToken(const std::string& verifyToken)
|
||||
{
|
||||
verifyToken_ = verifyToken;
|
||||
setParameter("VerifyToken", verifyToken);
|
||||
setCoreParameter("VerifyToken", verifyToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
|
||||
if(!verifyStatusNode["AuditConclusions"].isNull())
|
||||
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
|
||||
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
|
||||
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
88
cloudauth/src/model/SubmitVerificationRequest.cc
Normal file
88
cloudauth/src/model/SubmitVerificationRequest.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
|
||||
|
||||
SubmitVerificationRequest::SubmitVerificationRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
|
||||
{}
|
||||
|
||||
SubmitVerificationRequest::~SubmitVerificationRequest()
|
||||
{}
|
||||
|
||||
long SubmitVerificationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setCoreParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<SubmitVerificationRequest::Material> SubmitVerificationRequest::getMaterial()const
|
||||
{
|
||||
return material_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setMaterial(const std::vector<Material>& material)
|
||||
{
|
||||
material_ = material;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= material.size(); i++) {
|
||||
auto obj = material.at(i);
|
||||
std::string str ="Material."+ std::to_string(i);
|
||||
setCoreParameter(str + ".MaterialType", obj.materialType);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setCoreParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
83
cloudauth/src/model/SubmitVerificationResult.cc
Normal file
83
cloudauth/src/model/SubmitVerificationResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitVerificationResult::~SubmitVerificationResult()
|
||||
{}
|
||||
|
||||
void SubmitVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
|
||||
if(!verifyStatusNode["TrustedScore"].isNull())
|
||||
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
|
||||
if(!verifyStatusNode["SimilarityScore"].isNull())
|
||||
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
|
||||
if(!verifyStatusNode["AuditConclusions"].isNull())
|
||||
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
|
||||
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
|
||||
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitVerificationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitVerificationResult::Data SubmitVerificationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitVerificationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubmitVerificationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
114
dbs/CMakeLists.txt
Normal file
114
dbs/CMakeLists.txt
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(dbs_public_header
|
||||
include/alibabacloud/dbs/DbsClient.h
|
||||
include/alibabacloud/dbs/DbsExport.h )
|
||||
|
||||
set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h
|
||||
include/alibabacloud/dbs/model/StopBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/StopBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/CreateBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/CreateBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/StartBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/StartBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h
|
||||
include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeFullBackupListResult.h )
|
||||
|
||||
set(dbs_src
|
||||
src/DbsClient.cc
|
||||
src/model/DescribeBackupPlanListRequest.cc
|
||||
src/model/DescribeBackupPlanListResult.cc
|
||||
src/model/StopBackupPlanRequest.cc
|
||||
src/model/StopBackupPlanResult.cc
|
||||
src/model/CreateBackupPlanRequest.cc
|
||||
src/model/CreateBackupPlanResult.cc
|
||||
src/model/StartBackupPlanRequest.cc
|
||||
src/model/StartBackupPlanResult.cc
|
||||
src/model/DescribeBackupGatewayListRequest.cc
|
||||
src/model/DescribeBackupGatewayListResult.cc
|
||||
src/model/DescribeIncrementBackupListRequest.cc
|
||||
src/model/DescribeIncrementBackupListResult.cc
|
||||
src/model/ConfigureBackupPlanRequest.cc
|
||||
src/model/ConfigureBackupPlanResult.cc
|
||||
src/model/DescribeFullBackupListRequest.cc
|
||||
src/model/DescribeFullBackupListResult.cc )
|
||||
|
||||
add_library(dbs ${LIB_TYPE}
|
||||
${dbs_public_header}
|
||||
${dbs_public_header_model}
|
||||
${dbs_src})
|
||||
|
||||
set_target_properties(dbs
|
||||
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}dbs
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dbs
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DBS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dbs
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dbs
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dbs
|
||||
jsoncpp)
|
||||
target_include_directories(dbs
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dbs
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dbs
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dbs
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dbs
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dbs_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dbs)
|
||||
install(FILES ${dbs_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dbs/model)
|
||||
install(TARGETS dbs
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
110
dbs/include/alibabacloud/dbs/DbsClient.h
Normal file
110
dbs/include/alibabacloud/dbs/DbsClient.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DBS_DBSCLIENT_H_
|
||||
#define ALIBABACLOUD_DBS_DBSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DbsExport.h"
|
||||
#include "model/DescribeBackupPlanListRequest.h"
|
||||
#include "model/DescribeBackupPlanListResult.h"
|
||||
#include "model/StopBackupPlanRequest.h"
|
||||
#include "model/StopBackupPlanResult.h"
|
||||
#include "model/CreateBackupPlanRequest.h"
|
||||
#include "model/CreateBackupPlanResult.h"
|
||||
#include "model/StartBackupPlanRequest.h"
|
||||
#include "model/StartBackupPlanResult.h"
|
||||
#include "model/DescribeBackupGatewayListRequest.h"
|
||||
#include "model/DescribeBackupGatewayListResult.h"
|
||||
#include "model/DescribeIncrementBackupListRequest.h"
|
||||
#include "model/DescribeIncrementBackupListResult.h"
|
||||
#include "model/ConfigureBackupPlanRequest.h"
|
||||
#include "model/ConfigureBackupPlanResult.h"
|
||||
#include "model/DescribeFullBackupListRequest.h"
|
||||
#include "model/DescribeFullBackupListResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DbsClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanListResult> DescribeBackupPlanListOutcome;
|
||||
typedef std::future<DescribeBackupPlanListOutcome> DescribeBackupPlanListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupPlanListRequest&, const DescribeBackupPlanListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanListAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopBackupPlanResult> StopBackupPlanOutcome;
|
||||
typedef std::future<StopBackupPlanOutcome> StopBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::StopBackupPlanRequest&, const StopBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBackupPlanResult> CreateBackupPlanOutcome;
|
||||
typedef std::future<CreateBackupPlanOutcome> CreateBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::CreateBackupPlanRequest&, const CreateBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartBackupPlanResult> StartBackupPlanOutcome;
|
||||
typedef std::future<StartBackupPlanOutcome> StartBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::StartBackupPlanRequest&, const StartBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupGatewayListResult> DescribeBackupGatewayListOutcome;
|
||||
typedef std::future<DescribeBackupGatewayListOutcome> DescribeBackupGatewayListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupGatewayListRequest&, const DescribeBackupGatewayListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupGatewayListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIncrementBackupListResult> DescribeIncrementBackupListOutcome;
|
||||
typedef std::future<DescribeIncrementBackupListOutcome> DescribeIncrementBackupListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeIncrementBackupListRequest&, const DescribeIncrementBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIncrementBackupListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConfigureBackupPlanResult> ConfigureBackupPlanOutcome;
|
||||
typedef std::future<ConfigureBackupPlanOutcome> ConfigureBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ConfigureBackupPlanRequest&, const ConfigureBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFullBackupListResult> DescribeFullBackupListOutcome;
|
||||
typedef std::future<DescribeFullBackupListOutcome> DescribeFullBackupListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupListRequest&, const DescribeFullBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupListAsyncHandler;
|
||||
|
||||
DbsClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DbsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DbsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DbsClient();
|
||||
DescribeBackupPlanListOutcome describeBackupPlanList(const Model::DescribeBackupPlanListRequest &request)const;
|
||||
void describeBackupPlanListAsync(const Model::DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanListOutcomeCallable describeBackupPlanListCallable(const Model::DescribeBackupPlanListRequest& request) const;
|
||||
StopBackupPlanOutcome stopBackupPlan(const Model::StopBackupPlanRequest &request)const;
|
||||
void stopBackupPlanAsync(const Model::StopBackupPlanRequest& request, const StopBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopBackupPlanOutcomeCallable stopBackupPlanCallable(const Model::StopBackupPlanRequest& request) const;
|
||||
CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const;
|
||||
void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const;
|
||||
StartBackupPlanOutcome startBackupPlan(const Model::StartBackupPlanRequest &request)const;
|
||||
void startBackupPlanAsync(const Model::StartBackupPlanRequest& request, const StartBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartBackupPlanOutcomeCallable startBackupPlanCallable(const Model::StartBackupPlanRequest& request) const;
|
||||
DescribeBackupGatewayListOutcome describeBackupGatewayList(const Model::DescribeBackupGatewayListRequest &request)const;
|
||||
void describeBackupGatewayListAsync(const Model::DescribeBackupGatewayListRequest& request, const DescribeBackupGatewayListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupGatewayListOutcomeCallable describeBackupGatewayListCallable(const Model::DescribeBackupGatewayListRequest& request) const;
|
||||
DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const;
|
||||
void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const;
|
||||
ConfigureBackupPlanOutcome configureBackupPlan(const Model::ConfigureBackupPlanRequest &request)const;
|
||||
void configureBackupPlanAsync(const Model::ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConfigureBackupPlanOutcomeCallable configureBackupPlanCallable(const Model::ConfigureBackupPlanRequest& request) const;
|
||||
DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const;
|
||||
void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DBS_DBSCLIENT_H_
|
||||
@@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_FINMALLEXPORT_H_
|
||||
#define ALIBABACLOUD_FINMALL_FINMALLEXPORT_H_
|
||||
#ifndef ALIBABACLOUD_DBS_DBSEXPORT_H_
|
||||
#define ALIBABACLOUD_DBS_DBSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_FINMALL_LIBRARY)
|
||||
# define ALIBABACLOUD_FINMALL_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# if defined(ALIBABACLOUD_DBS_LIBRARY)
|
||||
# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_FINMALL_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_FINMALL_EXPORT
|
||||
# define ALIBABACLOUD_DBS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_FINMALL_FINMALLEXPORT_H_
|
||||
#endif // !ALIBABACLOUD_DBS_DBSEXPORT_H_
|
||||
114
dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h
Normal file
114
dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConfigureBackupPlanRequest();
|
||||
~ConfigureBackupPlanRequest();
|
||||
|
||||
std::string getSourceEndpointRegion()const;
|
||||
void setSourceEndpointRegion(const std::string& sourceEndpointRegion);
|
||||
int getDuplicationArchivePeriod()const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
long getBackupGatewayId()const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getSourceEndpointInstanceID()const;
|
||||
void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID);
|
||||
std::string getSourceEndpointUserName()const;
|
||||
void setSourceEndpointUserName(const std::string& sourceEndpointUserName);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getSourceEndpointPassword()const;
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getBackupObjects()const;
|
||||
void setBackupObjects(const std::string& backupObjects);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getSourceEndpointPort()const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
std::string getSourceEndpointDatabaseName()const;
|
||||
void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName);
|
||||
int getBackupRetentionPeriod()const;
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
int getDuplicationInfrequentAccessPeriod()const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
std::string getBackupPeriod()const;
|
||||
void setBackupPeriod(const std::string& backupPeriod);
|
||||
std::string getBackupStartTime()const;
|
||||
void setBackupStartTime(const std::string& backupStartTime);
|
||||
std::string getSourceEndpointInstanceType()const;
|
||||
void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType);
|
||||
std::string getSourceEndpointIP()const;
|
||||
void setSourceEndpointIP(const std::string& sourceEndpointIP);
|
||||
std::string getBackupPlanName()const;
|
||||
void setBackupPlanName(const std::string& backupPlanName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getSourceEndpointOracleSID()const;
|
||||
void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID);
|
||||
std::string getOSSBucketName()const;
|
||||
void setOSSBucketName(const std::string& oSSBucketName);
|
||||
bool getEnableBackupLog()const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
int duplicationArchivePeriod_;
|
||||
long backupGatewayId_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string clientToken_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupPlanId_;
|
||||
std::string backupObjects_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
int backupRetentionPeriod_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
std::string backupPeriod_;
|
||||
std::string backupStartTime_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string backupPlanName_;
|
||||
std::string regionId_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string oSSBucketName_;
|
||||
bool enableBackupLog_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_
|
||||
@@ -14,47 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_QUERYSIGNRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_QUERYSIGNRESULTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT QuerySignResultResult : public ServiceResult
|
||||
class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
QuerySignResultResult();
|
||||
explicit QuerySignResultResult(const std::string &payload);
|
||||
~QuerySignResultResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
ConfigureBackupPlanResult();
|
||||
explicit ConfigureBackupPlanResult(const std::string &payload);
|
||||
~ConfigureBackupPlanResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_QUERYSIGNRESULTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_
|
||||
72
dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h
Normal file
72
dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBackupPlanRequest();
|
||||
~CreateBackupPlanRequest();
|
||||
|
||||
std::string getBackupMethod()const;
|
||||
void setBackupMethod(const std::string& backupMethod);
|
||||
std::string getDatabaseType()const;
|
||||
void setDatabaseType(const std::string& databaseType);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getUsedTime()const;
|
||||
void setUsedTime(int usedTime);
|
||||
std::string getInstanceClass()const;
|
||||
void setInstanceClass(const std::string& instanceClass);
|
||||
|
||||
private:
|
||||
std::string backupMethod_;
|
||||
std::string databaseType_;
|
||||
std::string period_;
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
std::string region_;
|
||||
std::string ownerId_;
|
||||
int usedTime_;
|
||||
std::string instanceClass_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_
|
||||
@@ -14,46 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_APPLYFORLOANRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_APPLYFORLOANRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT ApplyForLoanResult : public ServiceResult
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string returnCode;
|
||||
};
|
||||
|
||||
|
||||
ApplyForLoanResult();
|
||||
explicit ApplyForLoanResult(const std::string &payload);
|
||||
~ApplyForLoanResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
CreateBackupPlanResult();
|
||||
explicit CreateBackupPlanResult(const std::string &payload);
|
||||
~CreateBackupPlanResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getOrderId()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
std::string orderId_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_APPLYFORLOANRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
@@ -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_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupGatewayListRequest();
|
||||
~DescribeBackupGatewayListRequest();
|
||||
|
||||
std::string getIdentifier()const;
|
||||
void setIdentifier(const std::string& identifier);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string identifier_;
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
int pageSize_;
|
||||
std::string region_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupGateway
|
||||
{
|
||||
std::string sourceEndpointHostname;
|
||||
std::string identifier;
|
||||
long backupGatewayCreateTime;
|
||||
std::string backupGatewayStatus;
|
||||
std::string sourceEndpointInternetIP;
|
||||
std::string sourceEndpointIntranetIP;
|
||||
std::string displayName;
|
||||
long lastHeartbeatTime;
|
||||
std::string region;
|
||||
std::string backupGatewayId;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupGatewayListResult();
|
||||
explicit DescribeBackupGatewayListResult(const std::string &payload);
|
||||
~DescribeBackupGatewayListResult();
|
||||
int getPageSize()const;
|
||||
int getPageNum()const;
|
||||
int getHttpStatusCode()const;
|
||||
int getTotalElements()const;
|
||||
std::vector<BackupGateway> getItems()const;
|
||||
int getTotalPages()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
int httpStatusCode_;
|
||||
int totalElements_;
|
||||
std::vector<BackupGateway> items_;
|
||||
int totalPages_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_
|
||||
@@ -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_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupPlanListRequest();
|
||||
~DescribeBackupPlanListRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
int pageSize_;
|
||||
std::string backupPlanId_;
|
||||
std::string region_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupPlanDetail
|
||||
{
|
||||
std::string backupPlanName;
|
||||
std::string backupMethod;
|
||||
long backupPlanCreateTime;
|
||||
std::string backupPeriod;
|
||||
std::string backupObjects;
|
||||
std::string sourceEndpointInstanceID;
|
||||
std::string instanceClass;
|
||||
std::string sourceEndpointDatabaseName;
|
||||
std::string oSSBucketRegion;
|
||||
std::string sourceEndpointRegion;
|
||||
std::string sourceEndpointIpPort;
|
||||
int duplicationArchivePeriod;
|
||||
std::string oSSBucketName;
|
||||
std::string backupPlanStatus;
|
||||
std::string backupStartTime;
|
||||
bool enableBackupLog;
|
||||
std::string backupPlanId;
|
||||
std::string sourceEndpointOracleSID;
|
||||
int backupRetentionPeriod;
|
||||
std::string sourceEndpointInstanceType;
|
||||
long backupGatewayId;
|
||||
std::string sourceEndpointUserName;
|
||||
int duplicationInfrequentAccessPeriod;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupPlanListResult();
|
||||
explicit DescribeBackupPlanListResult(const std::string &payload);
|
||||
~DescribeBackupPlanListResult();
|
||||
int getPageSize()const;
|
||||
int getPageNum()const;
|
||||
int getHttpStatusCode()const;
|
||||
int getTotalElements()const;
|
||||
std::vector<BackupPlanDetail> getItems()const;
|
||||
int getTotalPages()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
int httpStatusCode_;
|
||||
int totalElements_;
|
||||
std::vector<BackupPlanDetail> items_;
|
||||
int totalPages_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFullBackupListRequest();
|
||||
~DescribeFullBackupListRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
int pageSize_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FullBackupFile
|
||||
{
|
||||
std::string sourceEndpointIpPort;
|
||||
std::string storageMethod;
|
||||
long endTime;
|
||||
long backupSize;
|
||||
long startTime;
|
||||
long backupSetExpiredTime;
|
||||
std::string backupSetId;
|
||||
std::string backupStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeFullBackupListResult();
|
||||
explicit DescribeFullBackupListResult(const std::string &payload);
|
||||
~DescribeFullBackupListResult();
|
||||
int getPageSize()const;
|
||||
int getPageNum()const;
|
||||
int getHttpStatusCode()const;
|
||||
int getTotalElements()const;
|
||||
std::vector<FullBackupFile> getItems()const;
|
||||
int getTotalPages()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
int httpStatusCode_;
|
||||
int totalElements_;
|
||||
std::vector<FullBackupFile> items_;
|
||||
int totalPages_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeIncrementBackupListRequest();
|
||||
~DescribeIncrementBackupListRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
int pageSize_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct IncrementBackupFile
|
||||
{
|
||||
std::string sourceEndpointIpPort;
|
||||
std::string storageMethod;
|
||||
long endTime;
|
||||
long backupSize;
|
||||
long startTime;
|
||||
long backupSetExpiredTime;
|
||||
std::string backupSetId;
|
||||
std::string backupStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeIncrementBackupListResult();
|
||||
explicit DescribeIncrementBackupListResult(const std::string &payload);
|
||||
~DescribeIncrementBackupListResult();
|
||||
int getPageSize()const;
|
||||
int getPageNum()const;
|
||||
int getHttpStatusCode()const;
|
||||
int getTotalElements()const;
|
||||
std::vector<IncrementBackupFile> getItems()const;
|
||||
int getTotalPages()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
int httpStatusCode_;
|
||||
int totalElements_;
|
||||
std::vector<IncrementBackupFile> items_;
|
||||
int totalPages_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_
|
||||
57
dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h
Normal file
57
dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h
Normal 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_DBS_MODEL_STARTBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartBackupPlanRequest();
|
||||
~StartBackupPlanRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_
|
||||
@@ -14,46 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FINMALL_MODEL_PAYFORORDERRESULT_H_
|
||||
#define ALIBABACLOUD_FINMALL_MODEL_PAYFORORDERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/finmall/FinmallExport.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Finmall
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FINMALL_EXPORT PayForOrderResult : public ServiceResult
|
||||
class ALIBABACLOUD_DBS_EXPORT StartBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string returnCode;
|
||||
};
|
||||
|
||||
|
||||
PayForOrderResult();
|
||||
explicit PayForOrderResult(const std::string &payload);
|
||||
~PayForOrderResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
StartBackupPlanResult();
|
||||
explicit StartBackupPlanResult(const std::string &payload);
|
||||
~StartBackupPlanResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FINMALL_MODEL_PAYFORORDERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_
|
||||
60
dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h
Normal file
60
dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopBackupPlanRequest();
|
||||
~StopBackupPlanRequest();
|
||||
|
||||
std::string getStopMethod()const;
|
||||
void setStopMethod(const std::string& stopMethod);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string stopMethod_;
|
||||
std::string regionId_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_
|
||||
@@ -14,44 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_OPENVODSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_OPENVODSERVICERESULT_H_
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vod
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOD_EXPORT OpenVodServiceResult : public ServiceResult
|
||||
class ALIBABACLOUD_DBS_EXPORT StopBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenVodServiceResult();
|
||||
explicit OpenVodServiceResult(const std::string &payload);
|
||||
~OpenVodServiceResult();
|
||||
std::string getRequestId()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
StopBackupPlanResult();
|
||||
explicit StopBackupPlanResult(const std::string &payload);
|
||||
~StopBackupPlanResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_OPENVODSERVICERESULT_H_
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_
|
||||
341
dbs/src/DbsClient.cc
Normal file
341
dbs/src/DbsClient.cc
Normal file
@@ -0,0 +1,341 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/DbsClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Dbs";
|
||||
}
|
||||
|
||||
DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
|
||||
}
|
||||
|
||||
DbsClient::DbsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
|
||||
}
|
||||
|
||||
DbsClient::DbsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
|
||||
}
|
||||
|
||||
DbsClient::~DbsClient()
|
||||
{}
|
||||
|
||||
DbsClient::DescribeBackupPlanListOutcome DbsClient::describeBackupPlanList(const DescribeBackupPlanListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupPlanListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupPlanListOutcome(DescribeBackupPlanListResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupPlanListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeBackupPlanListAsync(const DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupPlanList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeBackupPlanListOutcomeCallable DbsClient::describeBackupPlanListCallable(const DescribeBackupPlanListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupPlanListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupPlanList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::StopBackupPlanOutcome DbsClient::stopBackupPlan(const StopBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopBackupPlanOutcome(StopBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return StopBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::stopBackupPlanAsync(const StopBackupPlanRequest& request, const StopBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::StopBackupPlanOutcomeCallable DbsClient::stopBackupPlanCallable(const StopBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateBackupPlanOutcome DbsClient::createBackupPlan(const CreateBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBackupPlanOutcome(CreateBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return CreateBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::createBackupPlanAsync(const CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::CreateBackupPlanOutcomeCallable DbsClient::createBackupPlanCallable(const CreateBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::StartBackupPlanOutcome DbsClient::startBackupPlan(const StartBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartBackupPlanOutcome(StartBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return StartBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::startBackupPlanAsync(const StartBackupPlanRequest& request, const StartBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::StartBackupPlanOutcomeCallable DbsClient::startBackupPlanCallable(const StartBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeBackupGatewayListOutcome DbsClient::describeBackupGatewayList(const DescribeBackupGatewayListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupGatewayListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupGatewayListOutcome(DescribeBackupGatewayListResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupGatewayListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeBackupGatewayListAsync(const DescribeBackupGatewayListRequest& request, const DescribeBackupGatewayListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupGatewayList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeBackupGatewayListOutcomeCallable DbsClient::describeBackupGatewayListCallable(const DescribeBackupGatewayListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupGatewayListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupGatewayList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIncrementBackupListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIncrementBackupListOutcome(DescribeIncrementBackupListResult(outcome.result()));
|
||||
else
|
||||
return DescribeIncrementBackupListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeIncrementBackupListAsync(const DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIncrementBackupList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeIncrementBackupListOutcomeCallable DbsClient::describeIncrementBackupListCallable(const DescribeIncrementBackupListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIncrementBackupListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIncrementBackupList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ConfigureBackupPlanOutcome DbsClient::configureBackupPlan(const ConfigureBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConfigureBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConfigureBackupPlanOutcome(ConfigureBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return ConfigureBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::configureBackupPlanAsync(const ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, configureBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::ConfigureBackupPlanOutcomeCallable DbsClient::configureBackupPlanCallable(const ConfigureBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConfigureBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->configureBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeFullBackupListOutcome DbsClient::describeFullBackupList(const DescribeFullBackupListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFullBackupListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFullBackupListOutcome(DescribeFullBackupListResult(outcome.result()));
|
||||
else
|
||||
return DescribeFullBackupListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeFullBackupListAsync(const DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFullBackupList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeFullBackupListOutcomeCallable DbsClient::describeFullBackupListCallable(const DescribeFullBackupListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFullBackupListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFullBackupList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
280
dbs/src/model/ConfigureBackupPlanRequest.cc
Normal file
280
dbs/src/model/ConfigureBackupPlanRequest.cc
Normal file
@@ -0,0 +1,280 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/ConfigureBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
|
||||
|
||||
ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
|
||||
{}
|
||||
|
||||
ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const
|
||||
{
|
||||
return sourceEndpointRegion_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion)
|
||||
{
|
||||
sourceEndpointRegion_ = sourceEndpointRegion;
|
||||
setCoreParameter("SourceEndpointRegion", sourceEndpointRegion);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
|
||||
{
|
||||
return duplicationArchivePeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod)
|
||||
{
|
||||
duplicationArchivePeriod_ = duplicationArchivePeriod;
|
||||
setCoreParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupGatewayId()const
|
||||
{
|
||||
return backupGatewayId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId)
|
||||
{
|
||||
backupGatewayId_ = backupGatewayId;
|
||||
setCoreParameter("BackupGatewayId", std::to_string(backupGatewayId));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID()const
|
||||
{
|
||||
return sourceEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID)
|
||||
{
|
||||
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
|
||||
setCoreParameter("SourceEndpointInstanceID", sourceEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointUserName()const
|
||||
{
|
||||
return sourceEndpointUserName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName)
|
||||
{
|
||||
sourceEndpointUserName_ = sourceEndpointUserName;
|
||||
setCoreParameter("SourceEndpointUserName", sourceEndpointUserName);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
|
||||
{
|
||||
return sourceEndpointPassword_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword)
|
||||
{
|
||||
sourceEndpointPassword_ = sourceEndpointPassword;
|
||||
setCoreParameter("SourceEndpointPassword", sourceEndpointPassword);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupObjects()const
|
||||
{
|
||||
return backupObjects_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjects)
|
||||
{
|
||||
backupObjects_ = backupObjects;
|
||||
setCoreParameter("BackupObjects", backupObjects);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getSourceEndpointPort()const
|
||||
{
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort)
|
||||
{
|
||||
sourceEndpointPort_ = sourceEndpointPort;
|
||||
setCoreParameter("SourceEndpointPort", std::to_string(sourceEndpointPort));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName()const
|
||||
{
|
||||
return sourceEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName)
|
||||
{
|
||||
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
|
||||
setCoreParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getBackupRetentionPeriod()const
|
||||
{
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod)
|
||||
{
|
||||
backupRetentionPeriod_ = backupRetentionPeriod;
|
||||
setCoreParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod));
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const
|
||||
{
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod)
|
||||
{
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setCoreParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupPeriod()const
|
||||
{
|
||||
return backupPeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
|
||||
{
|
||||
backupPeriod_ = backupPeriod;
|
||||
setCoreParameter("BackupPeriod", backupPeriod);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupStartTime()const
|
||||
{
|
||||
return backupStartTime_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime)
|
||||
{
|
||||
backupStartTime_ = backupStartTime;
|
||||
setCoreParameter("BackupStartTime", backupStartTime);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType()const
|
||||
{
|
||||
return sourceEndpointInstanceType_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType)
|
||||
{
|
||||
sourceEndpointInstanceType_ = sourceEndpointInstanceType;
|
||||
setCoreParameter("SourceEndpointInstanceType", sourceEndpointInstanceType);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointIP()const
|
||||
{
|
||||
return sourceEndpointIP_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP)
|
||||
{
|
||||
sourceEndpointIP_ = sourceEndpointIP;
|
||||
setCoreParameter("SourceEndpointIP", sourceEndpointIP);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupPlanName()const
|
||||
{
|
||||
return backupPlanName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName)
|
||||
{
|
||||
backupPlanName_ = backupPlanName;
|
||||
setCoreParameter("BackupPlanName", backupPlanName);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID()const
|
||||
{
|
||||
return sourceEndpointOracleSID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID)
|
||||
{
|
||||
sourceEndpointOracleSID_ = sourceEndpointOracleSID;
|
||||
setCoreParameter("SourceEndpointOracleSID", sourceEndpointOracleSID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOSSBucketName()const
|
||||
{
|
||||
return oSSBucketName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName)
|
||||
{
|
||||
oSSBucketName_ = oSSBucketName;
|
||||
setCoreParameter("OSSBucketName", oSSBucketName);
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanRequest::getEnableBackupLog()const
|
||||
{
|
||||
return enableBackupLog_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
|
||||
{
|
||||
enableBackupLog_ = enableBackupLog;
|
||||
setCoreParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
|
||||
}
|
||||
|
||||
80
dbs/src/model/ConfigureBackupPlanResult.cc
Normal file
80
dbs/src/model/ConfigureBackupPlanResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/ConfigureBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
ConfigureBackupPlanResult::ConfigureBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigureBackupPlanResult::~ConfigureBackupPlanResult()
|
||||
{}
|
||||
|
||||
void ConfigureBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
126
dbs/src/model/CreateBackupPlanRequest.cc
Normal file
126
dbs/src/model/CreateBackupPlanRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CreateBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest;
|
||||
|
||||
CreateBackupPlanRequest::CreateBackupPlanRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan")
|
||||
{}
|
||||
|
||||
CreateBackupPlanRequest::~CreateBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupPlanRequest::getBackupMethod()const
|
||||
{
|
||||
return backupMethod_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setBackupMethod(const std::string& backupMethod)
|
||||
{
|
||||
backupMethod_ = backupMethod;
|
||||
setCoreParameter("BackupMethod", backupMethod);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getDatabaseType()const
|
||||
{
|
||||
return databaseType_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setDatabaseType(const std::string& databaseType)
|
||||
{
|
||||
databaseType_ = databaseType;
|
||||
setCoreParameter("DatabaseType", databaseType);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int CreateBackupPlanRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setUsedTime(int usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setCoreParameter("UsedTime", std::to_string(usedTime));
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getInstanceClass()const
|
||||
{
|
||||
return instanceClass_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setInstanceClass(const std::string& instanceClass)
|
||||
{
|
||||
instanceClass_ = instanceClass;
|
||||
setCoreParameter("InstanceClass", instanceClass);
|
||||
}
|
||||
|
||||
87
dbs/src/model/CreateBackupPlanResult.cc
Normal file
87
dbs/src/model/CreateBackupPlanResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CreateBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupPlanResult::~CreateBackupPlanResult()
|
||||
{}
|
||||
|
||||
void CreateBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int CreateBackupPlanResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
bool CreateBackupPlanResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
104
dbs/src/model/DescribeBackupGatewayListRequest.cc
Normal file
104
dbs/src/model/DescribeBackupGatewayListRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeBackupGatewayListRequest;
|
||||
|
||||
DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList")
|
||||
{}
|
||||
|
||||
DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getIdentifier()const
|
||||
{
|
||||
return identifier_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setIdentifier(const std::string& identifier)
|
||||
{
|
||||
identifier_ = identifier;
|
||||
setCoreParameter("Identifier", identifier);
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
132
dbs/src/model/DescribeBackupGatewayListResult.cc
Normal file
132
dbs/src/model/DescribeBackupGatewayListResult.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeBackupGatewayListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupGatewayListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["BackupGateway"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
BackupGateway itemsObject;
|
||||
if(!value["BackupGatewayId"].isNull())
|
||||
itemsObject.backupGatewayId = value["BackupGatewayId"].asString();
|
||||
if(!value["SourceEndpointInternetIP"].isNull())
|
||||
itemsObject.sourceEndpointInternetIP = value["SourceEndpointInternetIP"].asString();
|
||||
if(!value["SourceEndpointIntranetIP"].isNull())
|
||||
itemsObject.sourceEndpointIntranetIP = value["SourceEndpointIntranetIP"].asString();
|
||||
if(!value["SourceEndpointHostname"].isNull())
|
||||
itemsObject.sourceEndpointHostname = value["SourceEndpointHostname"].asString();
|
||||
if(!value["BackupGatewayStatus"].isNull())
|
||||
itemsObject.backupGatewayStatus = value["BackupGatewayStatus"].asString();
|
||||
if(!value["LastHeartbeatTime"].isNull())
|
||||
itemsObject.lastHeartbeatTime = std::stol(value["LastHeartbeatTime"].asString());
|
||||
if(!value["BackupGatewayCreateTime"].isNull())
|
||||
itemsObject.backupGatewayCreateTime = std::stol(value["BackupGatewayCreateTime"].asString());
|
||||
if(!value["Region"].isNull())
|
||||
itemsObject.region = value["Region"].asString();
|
||||
if(!value["DisplayName"].isNull())
|
||||
itemsObject.displayName = value["DisplayName"].asString();
|
||||
if(!value["Identifier"].isNull())
|
||||
itemsObject.identifier = value["Identifier"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["TotalElements"].isNull())
|
||||
totalElements_ = std::stoi(value["TotalElements"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListResult::getTotalElements()const
|
||||
{
|
||||
return totalElements_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupGatewayListResult::BackupGateway> DescribeBackupGatewayListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListResult::getTotalPages()const
|
||||
{
|
||||
return totalPages_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeBackupGatewayListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
104
dbs/src/model/DescribeBackupPlanListRequest.cc
Normal file
104
dbs/src/model/DescribeBackupPlanListRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeBackupPlanListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeBackupPlanListRequest;
|
||||
|
||||
DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList")
|
||||
{}
|
||||
|
||||
DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
158
dbs/src/model/DescribeBackupPlanListResult.cc
Normal file
158
dbs/src/model/DescribeBackupPlanListResult.cc
Normal file
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeBackupPlanListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeBackupPlanListResult::DescribeBackupPlanListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPlanListResult::~DescribeBackupPlanListResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPlanListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["BackupPlanDetail"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
BackupPlanDetail itemsObject;
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
itemsObject.backupPlanId = value["BackupPlanId"].asString();
|
||||
if(!value["SourceEndpointInstanceType"].isNull())
|
||||
itemsObject.sourceEndpointInstanceType = value["SourceEndpointInstanceType"].asString();
|
||||
if(!value["SourceEndpointRegion"].isNull())
|
||||
itemsObject.sourceEndpointRegion = value["SourceEndpointRegion"].asString();
|
||||
if(!value["SourceEndpointInstanceID"].isNull())
|
||||
itemsObject.sourceEndpointInstanceID = value["SourceEndpointInstanceID"].asString();
|
||||
if(!value["SourceEndpointIpPort"].isNull())
|
||||
itemsObject.sourceEndpointIpPort = value["SourceEndpointIpPort"].asString();
|
||||
if(!value["SourceEndpointDatabaseName"].isNull())
|
||||
itemsObject.sourceEndpointDatabaseName = value["SourceEndpointDatabaseName"].asString();
|
||||
if(!value["SourceEndpointUserName"].isNull())
|
||||
itemsObject.sourceEndpointUserName = value["SourceEndpointUserName"].asString();
|
||||
if(!value["BackupObjects"].isNull())
|
||||
itemsObject.backupObjects = value["BackupObjects"].asString();
|
||||
if(!value["BackupGatewayId"].isNull())
|
||||
itemsObject.backupGatewayId = std::stol(value["BackupGatewayId"].asString());
|
||||
if(!value["OSSBucketRegion"].isNull())
|
||||
itemsObject.oSSBucketRegion = value["OSSBucketRegion"].asString();
|
||||
if(!value["OSSBucketName"].isNull())
|
||||
itemsObject.oSSBucketName = value["OSSBucketName"].asString();
|
||||
if(!value["BackupPeriod"].isNull())
|
||||
itemsObject.backupPeriod = value["BackupPeriod"].asString();
|
||||
if(!value["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = value["BackupStartTime"].asString();
|
||||
if(!value["EnableBackupLog"].isNull())
|
||||
itemsObject.enableBackupLog = value["EnableBackupLog"].asString() == "true";
|
||||
if(!value["BackupRetentionPeriod"].isNull())
|
||||
itemsObject.backupRetentionPeriod = std::stoi(value["BackupRetentionPeriod"].asString());
|
||||
if(!value["DuplicationInfrequentAccessPeriod"].isNull())
|
||||
itemsObject.duplicationInfrequentAccessPeriod = std::stoi(value["DuplicationInfrequentAccessPeriod"].asString());
|
||||
if(!value["DuplicationArchivePeriod"].isNull())
|
||||
itemsObject.duplicationArchivePeriod = std::stoi(value["DuplicationArchivePeriod"].asString());
|
||||
if(!value["BackupPlanName"].isNull())
|
||||
itemsObject.backupPlanName = value["BackupPlanName"].asString();
|
||||
if(!value["SourceEndpointOracleSID"].isNull())
|
||||
itemsObject.sourceEndpointOracleSID = value["SourceEndpointOracleSID"].asString();
|
||||
if(!value["InstanceClass"].isNull())
|
||||
itemsObject.instanceClass = value["InstanceClass"].asString();
|
||||
if(!value["BackupMethod"].isNull())
|
||||
itemsObject.backupMethod = value["BackupMethod"].asString();
|
||||
if(!value["BackupPlanCreateTime"].isNull())
|
||||
itemsObject.backupPlanCreateTime = std::stol(value["BackupPlanCreateTime"].asString());
|
||||
if(!value["BackupPlanStatus"].isNull())
|
||||
itemsObject.backupPlanStatus = value["BackupPlanStatus"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["TotalElements"].isNull())
|
||||
totalElements_ = std::stoi(value["TotalElements"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListResult::getTotalElements()const
|
||||
{
|
||||
return totalElements_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupPlanListResult::BackupPlanDetail> DescribeBackupPlanListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListResult::getTotalPages()const
|
||||
{
|
||||
return totalPages_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeBackupPlanListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
93
dbs/src/model/DescribeFullBackupListRequest.cc
Normal file
93
dbs/src/model/DescribeFullBackupListRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeFullBackupListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeFullBackupListRequest;
|
||||
|
||||
DescribeFullBackupListRequest::DescribeFullBackupListRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList")
|
||||
{}
|
||||
|
||||
DescribeFullBackupListRequest::~DescribeFullBackupListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int DescribeFullBackupListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
int DescribeFullBackupListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
128
dbs/src/model/DescribeFullBackupListResult.cc
Normal file
128
dbs/src/model/DescribeFullBackupListResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeFullBackupListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeFullBackupListResult::DescribeFullBackupListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFullBackupListResult::~DescribeFullBackupListResult()
|
||||
{}
|
||||
|
||||
void DescribeFullBackupListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["FullBackupFile"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
FullBackupFile itemsObject;
|
||||
if(!value["BackupSetId"].isNull())
|
||||
itemsObject.backupSetId = value["BackupSetId"].asString();
|
||||
if(!value["SourceEndpointIpPort"].isNull())
|
||||
itemsObject.sourceEndpointIpPort = value["SourceEndpointIpPort"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
itemsObject.startTime = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
itemsObject.endTime = std::stol(value["EndTime"].asString());
|
||||
if(!value["BackupStatus"].isNull())
|
||||
itemsObject.backupStatus = value["BackupStatus"].asString();
|
||||
if(!value["BackupSetExpiredTime"].isNull())
|
||||
itemsObject.backupSetExpiredTime = std::stol(value["BackupSetExpiredTime"].asString());
|
||||
if(!value["BackupSize"].isNull())
|
||||
itemsObject.backupSize = std::stol(value["BackupSize"].asString());
|
||||
if(!value["StorageMethod"].isNull())
|
||||
itemsObject.storageMethod = value["StorageMethod"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["TotalElements"].isNull())
|
||||
totalElements_ = std::stoi(value["TotalElements"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeFullBackupListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeFullBackupListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeFullBackupListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeFullBackupListResult::getTotalElements()const
|
||||
{
|
||||
return totalElements_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFullBackupListResult::FullBackupFile> DescribeFullBackupListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeFullBackupListResult::getTotalPages()const
|
||||
{
|
||||
return totalPages_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeFullBackupListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
93
dbs/src/model/DescribeIncrementBackupListRequest.cc
Normal file
93
dbs/src/model/DescribeIncrementBackupListRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeIncrementBackupListRequest;
|
||||
|
||||
DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList")
|
||||
{}
|
||||
|
||||
DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
128
dbs/src/model/DescribeIncrementBackupListResult.cc
Normal file
128
dbs/src/model/DescribeIncrementBackupListResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeIncrementBackupListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult()
|
||||
{}
|
||||
|
||||
void DescribeIncrementBackupListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["IncrementBackupFile"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
IncrementBackupFile itemsObject;
|
||||
if(!value["BackupSetId"].isNull())
|
||||
itemsObject.backupSetId = value["BackupSetId"].asString();
|
||||
if(!value["SourceEndpointIpPort"].isNull())
|
||||
itemsObject.sourceEndpointIpPort = value["SourceEndpointIpPort"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
itemsObject.startTime = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
itemsObject.endTime = std::stol(value["EndTime"].asString());
|
||||
if(!value["BackupStatus"].isNull())
|
||||
itemsObject.backupStatus = value["BackupStatus"].asString();
|
||||
if(!value["BackupSetExpiredTime"].isNull())
|
||||
itemsObject.backupSetExpiredTime = std::stol(value["BackupSetExpiredTime"].asString());
|
||||
if(!value["BackupSize"].isNull())
|
||||
itemsObject.backupSize = std::stol(value["BackupSize"].asString());
|
||||
if(!value["StorageMethod"].isNull())
|
||||
itemsObject.storageMethod = value["StorageMethod"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["TotalElements"].isNull())
|
||||
totalElements_ = std::stoi(value["TotalElements"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListResult::getTotalElements()const
|
||||
{
|
||||
return totalElements_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIncrementBackupListResult::IncrementBackupFile> DescribeIncrementBackupListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeIncrementBackupListResult::getTotalPages()const
|
||||
{
|
||||
return totalPages_;
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeIncrementBackupListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
71
dbs/src/model/StartBackupPlanRequest.cc
Normal file
71
dbs/src/model/StartBackupPlanRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/StartBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::StartBackupPlanRequest;
|
||||
|
||||
StartBackupPlanRequest::StartBackupPlanRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan")
|
||||
{}
|
||||
|
||||
StartBackupPlanRequest::~StartBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string StartBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StartBackupPlanRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StartBackupPlanRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string StartBackupPlanRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void StartBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string StartBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartBackupPlanRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
80
dbs/src/model/StartBackupPlanResult.cc
Normal file
80
dbs/src/model/StartBackupPlanResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/StartBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
StartBackupPlanResult::StartBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartBackupPlanResult::~StartBackupPlanResult()
|
||||
{}
|
||||
|
||||
void StartBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int StartBackupPlanResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string StartBackupPlanResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string StartBackupPlanResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool StartBackupPlanResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string StartBackupPlanResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
82
dbs/src/model/StopBackupPlanRequest.cc
Normal file
82
dbs/src/model/StopBackupPlanRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/StopBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::StopBackupPlanRequest;
|
||||
|
||||
StopBackupPlanRequest::StopBackupPlanRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan")
|
||||
{}
|
||||
|
||||
StopBackupPlanRequest::~StopBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string StopBackupPlanRequest::getStopMethod()const
|
||||
{
|
||||
return stopMethod_;
|
||||
}
|
||||
|
||||
void StopBackupPlanRequest::setStopMethod(const std::string& stopMethod)
|
||||
{
|
||||
stopMethod_ = stopMethod;
|
||||
setCoreParameter("StopMethod", stopMethod);
|
||||
}
|
||||
|
||||
std::string StopBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StopBackupPlanRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StopBackupPlanRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string StopBackupPlanRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void StopBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string StopBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopBackupPlanRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
80
dbs/src/model/StopBackupPlanResult.cc
Normal file
80
dbs/src/model/StopBackupPlanResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/StopBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
StopBackupPlanResult::StopBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopBackupPlanResult::~StopBackupPlanResult()
|
||||
{}
|
||||
|
||||
void StopBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int StopBackupPlanResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string StopBackupPlanResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string StopBackupPlanResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool StopBackupPlanResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string StopBackupPlanResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setCallerType(const std::string& callerType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
@@ -98,6 +100,7 @@ namespace AlibabaCloud
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
std::string accessKeyId_;
|
||||
std::string sourceRegionId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setCallerType(const std::string& callerType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
@@ -97,6 +99,7 @@ namespace AlibabaCloud
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
std::string accessKeyId_;
|
||||
std::string sourceRegionId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
bool enable_;
|
||||
|
||||
@@ -60,6 +60,8 @@ namespace AlibabaCloud
|
||||
void setCallerType(const std::string& callerType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getResourceGroupId()const;
|
||||
@@ -84,6 +86,8 @@ namespace AlibabaCloud
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getApp_ip()const;
|
||||
void setApp_ip(const std::string& app_ip);
|
||||
bool getVisible()const;
|
||||
void setVisible(bool visible);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -116,6 +120,7 @@ namespace AlibabaCloud
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
std::string accessKeyId_;
|
||||
std::string businessType_;
|
||||
std::string sourceRegionId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
@@ -128,6 +133,7 @@ namespace AlibabaCloud
|
||||
std::string networkInterfaceName_;
|
||||
long callerUid_;
|
||||
std::string app_ip_;
|
||||
bool visible_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string callerBid_;
|
||||
|
||||
@@ -42,6 +42,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
bool getServiceManaged()const;
|
||||
void setServiceManaged(bool serviceManaged);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
std::string getSecurityGroupId()const;
|
||||
@@ -115,6 +117,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
bool serviceManaged_;
|
||||
long callerParentId_;
|
||||
std::string securityGroupId_;
|
||||
bool proxy_original_security_transport_;
|
||||
|
||||
@@ -64,12 +64,14 @@ namespace AlibabaCloud
|
||||
std::string description;
|
||||
std::string zoneId;
|
||||
std::string resourceGroupId;
|
||||
bool serviceManaged;
|
||||
std::string instanceId;
|
||||
std::string vSwitchId;
|
||||
std::string networkInterfaceName;
|
||||
std::string networkInterfaceId;
|
||||
std::string macAddress;
|
||||
std::vector<std::string> securityGroupIds;
|
||||
long serviceID;
|
||||
std::string type;
|
||||
std::vector<NetworkInterfaceSet::Ipv6Set> ipv6Sets;
|
||||
std::string vpcId;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
JoinResourceGroupRequest();
|
||||
~JoinResourceGroupRequest();
|
||||
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
private:
|
||||
std::string sourceRegionId_;
|
||||
std::string resourceGroupId_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceId_;
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setCallerType(const std::string& callerType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
@@ -100,6 +102,7 @@ namespace AlibabaCloud
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
std::string accessKeyId_;
|
||||
std::string sourceRegionId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
bool enable_;
|
||||
|
||||
@@ -102,6 +102,17 @@ void AssignIpv6AddressesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AssignIpv6AddressesRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void AssignIpv6AddressesRequest::setSourceRegionId(const std::string& sourceRegionId)
|
||||
{
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setCoreParameter("SourceRegionId", sourceRegionId);
|
||||
}
|
||||
|
||||
std::string AssignIpv6AddressesRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -113,6 +113,17 @@ void AssignPrivateIpAddressesRequest::setAccessKeyId(const std::string& accessKe
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AssignPrivateIpAddressesRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void AssignPrivateIpAddressesRequest::setSourceRegionId(const std::string& sourceRegionId)
|
||||
{
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setCoreParameter("SourceRegionId", sourceRegionId);
|
||||
}
|
||||
|
||||
std::string AssignPrivateIpAddressesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
@@ -135,6 +135,17 @@ void CreateNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyI
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateNetworkInterfaceRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void CreateNetworkInterfaceRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
std::string CreateNetworkInterfaceRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
@@ -273,6 +284,17 @@ void CreateNetworkInterfaceRequest::setApp_ip(const std::string& app_ip)
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
bool CreateNetworkInterfaceRequest::getVisible()const
|
||||
{
|
||||
return visible_;
|
||||
}
|
||||
|
||||
void CreateNetworkInterfaceRequest::setVisible(bool visible)
|
||||
{
|
||||
visible_ = visible;
|
||||
setCoreParameter("Visible", visible ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -36,6 +36,17 @@ void DescribeNetworkInterfacesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool DescribeNetworkInterfacesRequest::getServiceManaged()const
|
||||
{
|
||||
return serviceManaged_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setServiceManaged(bool serviceManaged)
|
||||
{
|
||||
serviceManaged_ = serviceManaged;
|
||||
setCoreParameter("ServiceManaged", serviceManaged ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeNetworkInterfacesRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
|
||||
@@ -70,6 +70,10 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload)
|
||||
networkInterfaceSetsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
networkInterfaceSetsObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["ServiceID"].isNull())
|
||||
networkInterfaceSetsObject.serviceID = std::stol(value["ServiceID"].asString());
|
||||
if(!value["ServiceManaged"].isNull())
|
||||
networkInterfaceSetsObject.serviceManaged = value["ServiceManaged"].asString() == "true";
|
||||
auto allPrivateIpSets = value["PrivateIpSets"]["PrivateIpSet"];
|
||||
for (auto value : allPrivateIpSets)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,17 @@ JoinResourceGroupRequest::JoinResourceGroupRequest() :
|
||||
JoinResourceGroupRequest::~JoinResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string JoinResourceGroupRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void JoinResourceGroupRequest::setSourceRegionId(const std::string& sourceRegionId)
|
||||
{
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setCoreParameter("SourceRegionId", sourceRegionId);
|
||||
}
|
||||
|
||||
std::string JoinResourceGroupRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -125,6 +125,17 @@ void ModifyNetworkInterfaceAttributeRequest::setAccessKeyId(const std::string& a
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyNetworkInterfaceAttributeRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void ModifyNetworkInterfaceAttributeRequest::setSourceRegionId(const std::string& sourceRegionId)
|
||||
{
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setCoreParameter("SourceRegionId", sourceRegionId);
|
||||
}
|
||||
|
||||
std::string ModifyNetworkInterfaceAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
@@ -21,6 +21,8 @@ set(ehpc_public_header
|
||||
include/alibabacloud/ehpc/EHPCExport.h )
|
||||
|
||||
set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/DescribeJobRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeJobResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteImageRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteImageResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteUsersRequest.h
|
||||
@@ -37,48 +39,54 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/DescribeContainerAppResult.h
|
||||
include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h
|
||||
include/alibabacloud/ehpc/model/ListCurrentClientVersionResult.h
|
||||
include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h
|
||||
include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h
|
||||
include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/ListNodesByQueueResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h
|
||||
include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/SetAutoScaleConfigResult.h
|
||||
include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListInvocationResultsResult.h
|
||||
include/alibabacloud/ehpc/model/AddNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/AddNodesResult.h
|
||||
include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/SetAutoScaleConfigResult.h
|
||||
include/alibabacloud/ehpc/model/ListSoftwaresRequest.h
|
||||
include/alibabacloud/ehpc/model/ListSoftwaresResult.h
|
||||
include/alibabacloud/ehpc/model/AddNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/AddNodesResult.h
|
||||
include/alibabacloud/ehpc/model/StopJobsRequest.h
|
||||
include/alibabacloud/ehpc/model/StopJobsResult.h
|
||||
include/alibabacloud/ehpc/model/StartNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/StartNodesResult.h
|
||||
include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h
|
||||
include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeImagePriceResult.h
|
||||
include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeImagePriceResult.h
|
||||
include/alibabacloud/ehpc/model/ListNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListNodesResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyUserGroupsResult.h
|
||||
include/alibabacloud/ehpc/model/StartClusterRequest.h
|
||||
include/alibabacloud/ehpc/model/StartClusterResult.h
|
||||
include/alibabacloud/ehpc/model/SetQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/SetQueueResult.h
|
||||
include/alibabacloud/ehpc/model/ListCommandsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListCommandsResult.h
|
||||
include/alibabacloud/ehpc/model/ListCustomImagesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListCustomImagesResult.h
|
||||
include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h
|
||||
include/alibabacloud/ehpc/model/InvokeShellCommandResult.h
|
||||
include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListJobTemplatesResult.h
|
||||
include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h
|
||||
include/alibabacloud/ehpc/model/AddUsersRequest.h
|
||||
include/alibabacloud/ehpc/model/AddUsersResult.h
|
||||
include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListJobTemplatesResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyClusterAttributesResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyClusterAttributesResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteJobTemplatesResult.h
|
||||
include/alibabacloud/ehpc/model/StopClusterRequest.h
|
||||
@@ -87,12 +95,14 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h
|
||||
include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h
|
||||
include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h
|
||||
include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h
|
||||
include/alibabacloud/ehpc/model/CreateJobTemplateResult.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h
|
||||
include/alibabacloud/ehpc/model/ResetNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/ResetNodesResult.h
|
||||
include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h
|
||||
include/alibabacloud/ehpc/model/UninstallSoftwareResult.h
|
||||
include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h
|
||||
include/alibabacloud/ehpc/model/CreateHybridClusterResult.h
|
||||
include/alibabacloud/ehpc/model/ListContainerImagesRequest.h
|
||||
@@ -101,16 +111,28 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/DeleteJobsResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteNodesResult.h
|
||||
include/alibabacloud/ehpc/model/StopVisualServiceRequest.h
|
||||
include/alibabacloud/ehpc/model/StopVisualServiceResult.h
|
||||
include/alibabacloud/ehpc/model/ListJobsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListJobsResult.h
|
||||
include/alibabacloud/ehpc/model/CreateClusterRequest.h
|
||||
include/alibabacloud/ehpc/model/CreateClusterResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyUserPasswordsResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeImageResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteQueueResult.h
|
||||
include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h
|
||||
include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h
|
||||
include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h
|
||||
include/alibabacloud/ehpc/model/UpgradeClientRequest.h
|
||||
include/alibabacloud/ehpc/model/UpgradeClientResult.h
|
||||
include/alibabacloud/ehpc/model/ListAvailableFileSystemTypesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListAvailableFileSystemTypesResult.h
|
||||
include/alibabacloud/ehpc/model/ListClustersMetaRequest.h
|
||||
include/alibabacloud/ehpc/model/ListClustersMetaResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteClusterRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteClusterResult.h
|
||||
include/alibabacloud/ehpc/model/ListImagesRequest.h
|
||||
@@ -127,20 +149,30 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/ListContainerAppsResult.h
|
||||
include/alibabacloud/ehpc/model/ListQueuesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListQueuesResult.h
|
||||
include/alibabacloud/ehpc/model/CreateJobFileRequest.h
|
||||
include/alibabacloud/ehpc/model/CreateJobFileResult.h
|
||||
include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h
|
||||
include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h
|
||||
include/alibabacloud/ehpc/model/GetClusterVolumesResult.h
|
||||
include/alibabacloud/ehpc/model/SetJobUserRequest.h
|
||||
include/alibabacloud/ehpc/model/SetJobUserResult.h
|
||||
include/alibabacloud/ehpc/model/ListClustersRequest.h
|
||||
include/alibabacloud/ehpc/model/ListClustersResult.h
|
||||
include/alibabacloud/ehpc/model/SubmitJobRequest.h
|
||||
include/alibabacloud/ehpc/model/SubmitJobResult.h
|
||||
include/alibabacloud/ehpc/model/GetAccountingReportRequest.h
|
||||
include/alibabacloud/ehpc/model/GetAccountingReportResult.h
|
||||
include/alibabacloud/ehpc/model/ListRegionsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListRegionsResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h
|
||||
include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h
|
||||
include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h
|
||||
include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h
|
||||
include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h
|
||||
include/alibabacloud/ehpc/model/StartVisualServiceRequest.h
|
||||
include/alibabacloud/ehpc/model/StartVisualServiceResult.h
|
||||
include/alibabacloud/ehpc/model/DescribePriceRequest.h
|
||||
include/alibabacloud/ehpc/model/DescribePriceResult.h
|
||||
include/alibabacloud/ehpc/model/RerunJobsRequest.h
|
||||
@@ -149,19 +181,27 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/EditJobTemplateResult.h
|
||||
include/alibabacloud/ehpc/model/AddLocalNodesRequest.h
|
||||
include/alibabacloud/ehpc/model/AddLocalNodesResult.h
|
||||
include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h
|
||||
include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h
|
||||
include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h
|
||||
include/alibabacloud/ehpc/model/AddContainerAppRequest.h
|
||||
include/alibabacloud/ehpc/model/AddContainerAppResult.h
|
||||
include/alibabacloud/ehpc/model/InstallSoftwareRequest.h
|
||||
include/alibabacloud/ehpc/model/InstallSoftwareResult.h
|
||||
include/alibabacloud/ehpc/model/ListClusterLogsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListClusterLogsResult.h
|
||||
include/alibabacloud/ehpc/model/RecoverClusterRequest.h
|
||||
include/alibabacloud/ehpc/model/RecoverClusterResult.h
|
||||
include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h
|
||||
include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h )
|
||||
include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h
|
||||
include/alibabacloud/ehpc/model/AddQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/AddQueueResult.h )
|
||||
|
||||
set(ehpc_src
|
||||
src/EHPCClient.cc
|
||||
src/model/DescribeJobRequest.cc
|
||||
src/model/DescribeJobResult.cc
|
||||
src/model/DeleteImageRequest.cc
|
||||
src/model/DeleteImageResult.cc
|
||||
src/model/DeleteUsersRequest.cc
|
||||
@@ -178,48 +218,54 @@ set(ehpc_src
|
||||
src/model/DescribeContainerAppResult.cc
|
||||
src/model/ListCurrentClientVersionRequest.cc
|
||||
src/model/ListCurrentClientVersionResult.cc
|
||||
src/model/UpdateClusterVolumesRequest.cc
|
||||
src/model/UpdateClusterVolumesResult.cc
|
||||
src/model/ListNodesByQueueRequest.cc
|
||||
src/model/ListNodesByQueueResult.cc
|
||||
src/model/ModifyContainerAppAttributesRequest.cc
|
||||
src/model/ModifyContainerAppAttributesResult.cc
|
||||
src/model/SetAutoScaleConfigRequest.cc
|
||||
src/model/SetAutoScaleConfigResult.cc
|
||||
src/model/ListInvocationResultsRequest.cc
|
||||
src/model/ListInvocationResultsResult.cc
|
||||
src/model/AddNodesRequest.cc
|
||||
src/model/AddNodesResult.cc
|
||||
src/model/SetAutoScaleConfigRequest.cc
|
||||
src/model/SetAutoScaleConfigResult.cc
|
||||
src/model/ListSoftwaresRequest.cc
|
||||
src/model/ListSoftwaresResult.cc
|
||||
src/model/AddNodesRequest.cc
|
||||
src/model/AddNodesResult.cc
|
||||
src/model/StopJobsRequest.cc
|
||||
src/model/StopJobsResult.cc
|
||||
src/model/StartNodesRequest.cc
|
||||
src/model/StartNodesResult.cc
|
||||
src/model/GetCloudMetricProfilingRequest.cc
|
||||
src/model/GetCloudMetricProfilingResult.cc
|
||||
src/model/DescribeImagePriceRequest.cc
|
||||
src/model/DescribeImagePriceResult.cc
|
||||
src/model/GetAutoScaleConfigRequest.cc
|
||||
src/model/GetAutoScaleConfigResult.cc
|
||||
src/model/DescribeImagePriceRequest.cc
|
||||
src/model/DescribeImagePriceResult.cc
|
||||
src/model/ListNodesRequest.cc
|
||||
src/model/ListNodesResult.cc
|
||||
src/model/ModifyUserGroupsRequest.cc
|
||||
src/model/ModifyUserGroupsResult.cc
|
||||
src/model/StartClusterRequest.cc
|
||||
src/model/StartClusterResult.cc
|
||||
src/model/SetQueueRequest.cc
|
||||
src/model/SetQueueResult.cc
|
||||
src/model/ListCommandsRequest.cc
|
||||
src/model/ListCommandsResult.cc
|
||||
src/model/ListCustomImagesRequest.cc
|
||||
src/model/ListCustomImagesResult.cc
|
||||
src/model/InvokeShellCommandRequest.cc
|
||||
src/model/InvokeShellCommandResult.cc
|
||||
src/model/ListJobTemplatesRequest.cc
|
||||
src/model/ListJobTemplatesResult.cc
|
||||
src/model/ListFileSystemWithMountTargetsRequest.cc
|
||||
src/model/ListFileSystemWithMountTargetsResult.cc
|
||||
src/model/AddUsersRequest.cc
|
||||
src/model/AddUsersResult.cc
|
||||
src/model/ListJobTemplatesRequest.cc
|
||||
src/model/ListJobTemplatesResult.cc
|
||||
src/model/ModifyClusterAttributesRequest.cc
|
||||
src/model/ModifyClusterAttributesResult.cc
|
||||
src/model/DescribeImageGatewayConfigRequest.cc
|
||||
src/model/DescribeImageGatewayConfigResult.cc
|
||||
src/model/ModifyClusterAttributesRequest.cc
|
||||
src/model/ModifyClusterAttributesResult.cc
|
||||
src/model/DeleteJobTemplatesRequest.cc
|
||||
src/model/DeleteJobTemplatesResult.cc
|
||||
src/model/StopClusterRequest.cc
|
||||
@@ -228,12 +274,14 @@ set(ehpc_src
|
||||
src/model/ListNodesNoPagingResult.cc
|
||||
src/model/GetCloudMetricLogsRequest.cc
|
||||
src/model/GetCloudMetricLogsResult.cc
|
||||
src/model/GetHybridClusterConfigRequest.cc
|
||||
src/model/GetHybridClusterConfigResult.cc
|
||||
src/model/CreateJobTemplateRequest.cc
|
||||
src/model/CreateJobTemplateResult.cc
|
||||
src/model/GetHybridClusterConfigRequest.cc
|
||||
src/model/GetHybridClusterConfigResult.cc
|
||||
src/model/ResetNodesRequest.cc
|
||||
src/model/ResetNodesResult.cc
|
||||
src/model/UninstallSoftwareRequest.cc
|
||||
src/model/UninstallSoftwareResult.cc
|
||||
src/model/CreateHybridClusterRequest.cc
|
||||
src/model/CreateHybridClusterResult.cc
|
||||
src/model/ListContainerImagesRequest.cc
|
||||
@@ -242,16 +290,28 @@ set(ehpc_src
|
||||
src/model/DeleteJobsResult.cc
|
||||
src/model/DeleteNodesRequest.cc
|
||||
src/model/DeleteNodesResult.cc
|
||||
src/model/StopVisualServiceRequest.cc
|
||||
src/model/StopVisualServiceResult.cc
|
||||
src/model/ListJobsRequest.cc
|
||||
src/model/ListJobsResult.cc
|
||||
src/model/CreateClusterRequest.cc
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/DescribeImageRequest.cc
|
||||
src/model/DescribeImageResult.cc
|
||||
src/model/ModifyUserPasswordsRequest.cc
|
||||
src/model/ModifyUserPasswordsResult.cc
|
||||
src/model/DescribeImageRequest.cc
|
||||
src/model/DescribeImageResult.cc
|
||||
src/model/DeleteQueueRequest.cc
|
||||
src/model/DeleteQueueResult.cc
|
||||
src/model/ListCpfsFileSystemsRequest.cc
|
||||
src/model/ListCpfsFileSystemsResult.cc
|
||||
src/model/ListInstalledSoftwareRequest.cc
|
||||
src/model/ListInstalledSoftwareResult.cc
|
||||
src/model/UpgradeClientRequest.cc
|
||||
src/model/UpgradeClientResult.cc
|
||||
src/model/ListAvailableFileSystemTypesRequest.cc
|
||||
src/model/ListAvailableFileSystemTypesResult.cc
|
||||
src/model/ListClustersMetaRequest.cc
|
||||
src/model/ListClustersMetaResult.cc
|
||||
src/model/DeleteClusterRequest.cc
|
||||
src/model/DeleteClusterResult.cc
|
||||
src/model/ListImagesRequest.cc
|
||||
@@ -268,20 +328,30 @@ set(ehpc_src
|
||||
src/model/ListContainerAppsResult.cc
|
||||
src/model/ListQueuesRequest.cc
|
||||
src/model/ListQueuesResult.cc
|
||||
src/model/CreateJobFileRequest.cc
|
||||
src/model/CreateJobFileResult.cc
|
||||
src/model/ListCloudMetricProfilingsRequest.cc
|
||||
src/model/ListCloudMetricProfilingsResult.cc
|
||||
src/model/GetClusterVolumesRequest.cc
|
||||
src/model/GetClusterVolumesResult.cc
|
||||
src/model/SetJobUserRequest.cc
|
||||
src/model/SetJobUserResult.cc
|
||||
src/model/ListClustersRequest.cc
|
||||
src/model/ListClustersResult.cc
|
||||
src/model/SubmitJobRequest.cc
|
||||
src/model/SubmitJobResult.cc
|
||||
src/model/GetAccountingReportRequest.cc
|
||||
src/model/GetAccountingReportResult.cc
|
||||
src/model/ListRegionsRequest.cc
|
||||
src/model/ListRegionsResult.cc
|
||||
src/model/DescribeAutoScaleConfigRequest.cc
|
||||
src/model/DescribeAutoScaleConfigResult.cc
|
||||
src/model/GetVisualServiceStatusRequest.cc
|
||||
src/model/GetVisualServiceStatusResult.cc
|
||||
src/model/RunCloudMetricProfilingRequest.cc
|
||||
src/model/RunCloudMetricProfilingResult.cc
|
||||
src/model/StartVisualServiceRequest.cc
|
||||
src/model/StartVisualServiceResult.cc
|
||||
src/model/DescribePriceRequest.cc
|
||||
src/model/DescribePriceResult.cc
|
||||
src/model/RerunJobsRequest.cc
|
||||
@@ -290,16 +360,22 @@ set(ehpc_src
|
||||
src/model/EditJobTemplateResult.cc
|
||||
src/model/AddLocalNodesRequest.cc
|
||||
src/model/AddLocalNodesResult.cc
|
||||
src/model/ModifyVisualServicePasswdRequest.cc
|
||||
src/model/ModifyVisualServicePasswdResult.cc
|
||||
src/model/ListPreferredEcsTypesRequest.cc
|
||||
src/model/ListPreferredEcsTypesResult.cc
|
||||
src/model/AddContainerAppRequest.cc
|
||||
src/model/AddContainerAppResult.cc
|
||||
src/model/InstallSoftwareRequest.cc
|
||||
src/model/InstallSoftwareResult.cc
|
||||
src/model/ListClusterLogsRequest.cc
|
||||
src/model/ListClusterLogsResult.cc
|
||||
src/model/RecoverClusterRequest.cc
|
||||
src/model/RecoverClusterResult.cc
|
||||
src/model/ListAvailableEcsTypesRequest.cc
|
||||
src/model/ListAvailableEcsTypesResult.cc )
|
||||
src/model/ListAvailableEcsTypesResult.cc
|
||||
src/model/AddQueueRequest.cc
|
||||
src/model/AddQueueResult.cc )
|
||||
|
||||
add_library(ehpc ${LIB_TYPE}
|
||||
${ehpc_public_header}
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "EHPCExport.h"
|
||||
#include "model/DescribeJobRequest.h"
|
||||
#include "model/DescribeJobResult.h"
|
||||
#include "model/DeleteImageRequest.h"
|
||||
#include "model/DeleteImageResult.h"
|
||||
#include "model/DeleteUsersRequest.h"
|
||||
@@ -38,48 +40,54 @@
|
||||
#include "model/DescribeContainerAppResult.h"
|
||||
#include "model/ListCurrentClientVersionRequest.h"
|
||||
#include "model/ListCurrentClientVersionResult.h"
|
||||
#include "model/UpdateClusterVolumesRequest.h"
|
||||
#include "model/UpdateClusterVolumesResult.h"
|
||||
#include "model/ListNodesByQueueRequest.h"
|
||||
#include "model/ListNodesByQueueResult.h"
|
||||
#include "model/ModifyContainerAppAttributesRequest.h"
|
||||
#include "model/ModifyContainerAppAttributesResult.h"
|
||||
#include "model/SetAutoScaleConfigRequest.h"
|
||||
#include "model/SetAutoScaleConfigResult.h"
|
||||
#include "model/ListInvocationResultsRequest.h"
|
||||
#include "model/ListInvocationResultsResult.h"
|
||||
#include "model/AddNodesRequest.h"
|
||||
#include "model/AddNodesResult.h"
|
||||
#include "model/SetAutoScaleConfigRequest.h"
|
||||
#include "model/SetAutoScaleConfigResult.h"
|
||||
#include "model/ListSoftwaresRequest.h"
|
||||
#include "model/ListSoftwaresResult.h"
|
||||
#include "model/AddNodesRequest.h"
|
||||
#include "model/AddNodesResult.h"
|
||||
#include "model/StopJobsRequest.h"
|
||||
#include "model/StopJobsResult.h"
|
||||
#include "model/StartNodesRequest.h"
|
||||
#include "model/StartNodesResult.h"
|
||||
#include "model/GetCloudMetricProfilingRequest.h"
|
||||
#include "model/GetCloudMetricProfilingResult.h"
|
||||
#include "model/DescribeImagePriceRequest.h"
|
||||
#include "model/DescribeImagePriceResult.h"
|
||||
#include "model/GetAutoScaleConfigRequest.h"
|
||||
#include "model/GetAutoScaleConfigResult.h"
|
||||
#include "model/DescribeImagePriceRequest.h"
|
||||
#include "model/DescribeImagePriceResult.h"
|
||||
#include "model/ListNodesRequest.h"
|
||||
#include "model/ListNodesResult.h"
|
||||
#include "model/ModifyUserGroupsRequest.h"
|
||||
#include "model/ModifyUserGroupsResult.h"
|
||||
#include "model/StartClusterRequest.h"
|
||||
#include "model/StartClusterResult.h"
|
||||
#include "model/SetQueueRequest.h"
|
||||
#include "model/SetQueueResult.h"
|
||||
#include "model/ListCommandsRequest.h"
|
||||
#include "model/ListCommandsResult.h"
|
||||
#include "model/ListCustomImagesRequest.h"
|
||||
#include "model/ListCustomImagesResult.h"
|
||||
#include "model/InvokeShellCommandRequest.h"
|
||||
#include "model/InvokeShellCommandResult.h"
|
||||
#include "model/ListJobTemplatesRequest.h"
|
||||
#include "model/ListJobTemplatesResult.h"
|
||||
#include "model/ListFileSystemWithMountTargetsRequest.h"
|
||||
#include "model/ListFileSystemWithMountTargetsResult.h"
|
||||
#include "model/AddUsersRequest.h"
|
||||
#include "model/AddUsersResult.h"
|
||||
#include "model/ListJobTemplatesRequest.h"
|
||||
#include "model/ListJobTemplatesResult.h"
|
||||
#include "model/ModifyClusterAttributesRequest.h"
|
||||
#include "model/ModifyClusterAttributesResult.h"
|
||||
#include "model/DescribeImageGatewayConfigRequest.h"
|
||||
#include "model/DescribeImageGatewayConfigResult.h"
|
||||
#include "model/ModifyClusterAttributesRequest.h"
|
||||
#include "model/ModifyClusterAttributesResult.h"
|
||||
#include "model/DeleteJobTemplatesRequest.h"
|
||||
#include "model/DeleteJobTemplatesResult.h"
|
||||
#include "model/StopClusterRequest.h"
|
||||
@@ -88,12 +96,14 @@
|
||||
#include "model/ListNodesNoPagingResult.h"
|
||||
#include "model/GetCloudMetricLogsRequest.h"
|
||||
#include "model/GetCloudMetricLogsResult.h"
|
||||
#include "model/GetHybridClusterConfigRequest.h"
|
||||
#include "model/GetHybridClusterConfigResult.h"
|
||||
#include "model/CreateJobTemplateRequest.h"
|
||||
#include "model/CreateJobTemplateResult.h"
|
||||
#include "model/GetHybridClusterConfigRequest.h"
|
||||
#include "model/GetHybridClusterConfigResult.h"
|
||||
#include "model/ResetNodesRequest.h"
|
||||
#include "model/ResetNodesResult.h"
|
||||
#include "model/UninstallSoftwareRequest.h"
|
||||
#include "model/UninstallSoftwareResult.h"
|
||||
#include "model/CreateHybridClusterRequest.h"
|
||||
#include "model/CreateHybridClusterResult.h"
|
||||
#include "model/ListContainerImagesRequest.h"
|
||||
@@ -102,16 +112,28 @@
|
||||
#include "model/DeleteJobsResult.h"
|
||||
#include "model/DeleteNodesRequest.h"
|
||||
#include "model/DeleteNodesResult.h"
|
||||
#include "model/StopVisualServiceRequest.h"
|
||||
#include "model/StopVisualServiceResult.h"
|
||||
#include "model/ListJobsRequest.h"
|
||||
#include "model/ListJobsResult.h"
|
||||
#include "model/CreateClusterRequest.h"
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/DescribeImageRequest.h"
|
||||
#include "model/DescribeImageResult.h"
|
||||
#include "model/ModifyUserPasswordsRequest.h"
|
||||
#include "model/ModifyUserPasswordsResult.h"
|
||||
#include "model/DescribeImageRequest.h"
|
||||
#include "model/DescribeImageResult.h"
|
||||
#include "model/DeleteQueueRequest.h"
|
||||
#include "model/DeleteQueueResult.h"
|
||||
#include "model/ListCpfsFileSystemsRequest.h"
|
||||
#include "model/ListCpfsFileSystemsResult.h"
|
||||
#include "model/ListInstalledSoftwareRequest.h"
|
||||
#include "model/ListInstalledSoftwareResult.h"
|
||||
#include "model/UpgradeClientRequest.h"
|
||||
#include "model/UpgradeClientResult.h"
|
||||
#include "model/ListAvailableFileSystemTypesRequest.h"
|
||||
#include "model/ListAvailableFileSystemTypesResult.h"
|
||||
#include "model/ListClustersMetaRequest.h"
|
||||
#include "model/ListClustersMetaResult.h"
|
||||
#include "model/DeleteClusterRequest.h"
|
||||
#include "model/DeleteClusterResult.h"
|
||||
#include "model/ListImagesRequest.h"
|
||||
@@ -128,20 +150,30 @@
|
||||
#include "model/ListContainerAppsResult.h"
|
||||
#include "model/ListQueuesRequest.h"
|
||||
#include "model/ListQueuesResult.h"
|
||||
#include "model/CreateJobFileRequest.h"
|
||||
#include "model/CreateJobFileResult.h"
|
||||
#include "model/ListCloudMetricProfilingsRequest.h"
|
||||
#include "model/ListCloudMetricProfilingsResult.h"
|
||||
#include "model/GetClusterVolumesRequest.h"
|
||||
#include "model/GetClusterVolumesResult.h"
|
||||
#include "model/SetJobUserRequest.h"
|
||||
#include "model/SetJobUserResult.h"
|
||||
#include "model/ListClustersRequest.h"
|
||||
#include "model/ListClustersResult.h"
|
||||
#include "model/SubmitJobRequest.h"
|
||||
#include "model/SubmitJobResult.h"
|
||||
#include "model/GetAccountingReportRequest.h"
|
||||
#include "model/GetAccountingReportResult.h"
|
||||
#include "model/ListRegionsRequest.h"
|
||||
#include "model/ListRegionsResult.h"
|
||||
#include "model/DescribeAutoScaleConfigRequest.h"
|
||||
#include "model/DescribeAutoScaleConfigResult.h"
|
||||
#include "model/GetVisualServiceStatusRequest.h"
|
||||
#include "model/GetVisualServiceStatusResult.h"
|
||||
#include "model/RunCloudMetricProfilingRequest.h"
|
||||
#include "model/RunCloudMetricProfilingResult.h"
|
||||
#include "model/StartVisualServiceRequest.h"
|
||||
#include "model/StartVisualServiceResult.h"
|
||||
#include "model/DescribePriceRequest.h"
|
||||
#include "model/DescribePriceResult.h"
|
||||
#include "model/RerunJobsRequest.h"
|
||||
@@ -150,16 +182,22 @@
|
||||
#include "model/EditJobTemplateResult.h"
|
||||
#include "model/AddLocalNodesRequest.h"
|
||||
#include "model/AddLocalNodesResult.h"
|
||||
#include "model/ModifyVisualServicePasswdRequest.h"
|
||||
#include "model/ModifyVisualServicePasswdResult.h"
|
||||
#include "model/ListPreferredEcsTypesRequest.h"
|
||||
#include "model/ListPreferredEcsTypesResult.h"
|
||||
#include "model/AddContainerAppRequest.h"
|
||||
#include "model/AddContainerAppResult.h"
|
||||
#include "model/InstallSoftwareRequest.h"
|
||||
#include "model/InstallSoftwareResult.h"
|
||||
#include "model/ListClusterLogsRequest.h"
|
||||
#include "model/ListClusterLogsResult.h"
|
||||
#include "model/RecoverClusterRequest.h"
|
||||
#include "model/RecoverClusterResult.h"
|
||||
#include "model/ListAvailableEcsTypesRequest.h"
|
||||
#include "model/ListAvailableEcsTypesResult.h"
|
||||
#include "model/AddQueueRequest.h"
|
||||
#include "model/AddQueueResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -169,6 +207,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_EHPC_EXPORT EHPCClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeJobResult> DescribeJobOutcome;
|
||||
typedef std::future<DescribeJobOutcome> DescribeJobOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeJobRequest&, const DescribeJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteImageResult> DeleteImageOutcome;
|
||||
typedef std::future<DeleteImageOutcome> DeleteImageOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteImageRequest&, const DeleteImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteImageAsyncHandler;
|
||||
@@ -193,21 +234,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListCurrentClientVersionResult> ListCurrentClientVersionOutcome;
|
||||
typedef std::future<ListCurrentClientVersionOutcome> ListCurrentClientVersionOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListCurrentClientVersionRequest&, const ListCurrentClientVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCurrentClientVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateClusterVolumesResult> UpdateClusterVolumesOutcome;
|
||||
typedef std::future<UpdateClusterVolumesOutcome> UpdateClusterVolumesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::UpdateClusterVolumesRequest&, const UpdateClusterVolumesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateClusterVolumesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListNodesByQueueResult> ListNodesByQueueOutcome;
|
||||
typedef std::future<ListNodesByQueueOutcome> ListNodesByQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListNodesByQueueRequest&, const ListNodesByQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodesByQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyContainerAppAttributesResult> ModifyContainerAppAttributesOutcome;
|
||||
typedef std::future<ModifyContainerAppAttributesOutcome> ModifyContainerAppAttributesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ModifyContainerAppAttributesRequest&, const ModifyContainerAppAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyContainerAppAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetAutoScaleConfigResult> SetAutoScaleConfigOutcome;
|
||||
typedef std::future<SetAutoScaleConfigOutcome> SetAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::SetAutoScaleConfigRequest&, const SetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAutoScaleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInvocationResultsResult> ListInvocationResultsOutcome;
|
||||
typedef std::future<ListInvocationResultsOutcome> ListInvocationResultsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListInvocationResultsRequest&, const ListInvocationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInvocationResultsAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddNodesResult> AddNodesOutcome;
|
||||
typedef std::future<AddNodesOutcome> AddNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddNodesRequest&, const AddNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetAutoScaleConfigResult> SetAutoScaleConfigOutcome;
|
||||
typedef std::future<SetAutoScaleConfigOutcome> SetAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::SetAutoScaleConfigRequest&, const SetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAutoScaleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSoftwaresResult> ListSoftwaresOutcome;
|
||||
typedef std::future<ListSoftwaresOutcome> ListSoftwaresOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListSoftwaresRequest&, const ListSoftwaresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSoftwaresAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddNodesResult> AddNodesOutcome;
|
||||
typedef std::future<AddNodesOutcome> AddNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddNodesRequest&, const AddNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopJobsResult> StopJobsOutcome;
|
||||
typedef std::future<StopJobsOutcome> StopJobsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::StopJobsRequest&, const StopJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopJobsAsyncHandler;
|
||||
@@ -217,12 +264,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCloudMetricProfilingResult> GetCloudMetricProfilingOutcome;
|
||||
typedef std::future<GetCloudMetricProfilingOutcome> GetCloudMetricProfilingOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetCloudMetricProfilingRequest&, const GetCloudMetricProfilingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCloudMetricProfilingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImagePriceResult> DescribeImagePriceOutcome;
|
||||
typedef std::future<DescribeImagePriceOutcome> DescribeImagePriceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImagePriceRequest&, const DescribeImagePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImagePriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAutoScaleConfigResult> GetAutoScaleConfigOutcome;
|
||||
typedef std::future<GetAutoScaleConfigOutcome> GetAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetAutoScaleConfigRequest&, const GetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAutoScaleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImagePriceResult> DescribeImagePriceOutcome;
|
||||
typedef std::future<DescribeImagePriceOutcome> DescribeImagePriceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImagePriceRequest&, const DescribeImagePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImagePriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListNodesResult> ListNodesOutcome;
|
||||
typedef std::future<ListNodesOutcome> ListNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListNodesRequest&, const ListNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodesAsyncHandler;
|
||||
@@ -232,6 +279,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartClusterResult> StartClusterOutcome;
|
||||
typedef std::future<StartClusterOutcome> StartClusterOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::StartClusterRequest&, const StartClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetQueueResult> SetQueueOutcome;
|
||||
typedef std::future<SetQueueOutcome> SetQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::SetQueueRequest&, const SetQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCommandsResult> ListCommandsOutcome;
|
||||
typedef std::future<ListCommandsOutcome> ListCommandsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListCommandsRequest&, const ListCommandsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCommandsAsyncHandler;
|
||||
@@ -241,21 +291,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InvokeShellCommandResult> InvokeShellCommandOutcome;
|
||||
typedef std::future<InvokeShellCommandOutcome> InvokeShellCommandOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::InvokeShellCommandRequest&, const InvokeShellCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InvokeShellCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobTemplatesResult> ListJobTemplatesOutcome;
|
||||
typedef std::future<ListJobTemplatesOutcome> ListJobTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListJobTemplatesRequest&, const ListJobTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListFileSystemWithMountTargetsResult> ListFileSystemWithMountTargetsOutcome;
|
||||
typedef std::future<ListFileSystemWithMountTargetsOutcome> ListFileSystemWithMountTargetsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListFileSystemWithMountTargetsRequest&, const ListFileSystemWithMountTargetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFileSystemWithMountTargetsAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddUsersResult> AddUsersOutcome;
|
||||
typedef std::future<AddUsersOutcome> AddUsersOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddUsersRequest&, const AddUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobTemplatesResult> ListJobTemplatesOutcome;
|
||||
typedef std::future<ListJobTemplatesOutcome> ListJobTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListJobTemplatesRequest&, const ListJobTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterAttributesResult> ModifyClusterAttributesOutcome;
|
||||
typedef std::future<ModifyClusterAttributesOutcome> ModifyClusterAttributesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ModifyClusterAttributesRequest&, const ModifyClusterAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImageGatewayConfigResult> DescribeImageGatewayConfigOutcome;
|
||||
typedef std::future<DescribeImageGatewayConfigOutcome> DescribeImageGatewayConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImageGatewayConfigRequest&, const DescribeImageGatewayConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageGatewayConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterAttributesResult> ModifyClusterAttributesOutcome;
|
||||
typedef std::future<ModifyClusterAttributesOutcome> ModifyClusterAttributesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ModifyClusterAttributesRequest&, const ModifyClusterAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteJobTemplatesResult> DeleteJobTemplatesOutcome;
|
||||
typedef std::future<DeleteJobTemplatesOutcome> DeleteJobTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteJobTemplatesRequest&, const DeleteJobTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteJobTemplatesAsyncHandler;
|
||||
@@ -268,15 +318,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCloudMetricLogsResult> GetCloudMetricLogsOutcome;
|
||||
typedef std::future<GetCloudMetricLogsOutcome> GetCloudMetricLogsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetCloudMetricLogsRequest&, const GetCloudMetricLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCloudMetricLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHybridClusterConfigResult> GetHybridClusterConfigOutcome;
|
||||
typedef std::future<GetHybridClusterConfigOutcome> GetHybridClusterConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetHybridClusterConfigRequest&, const GetHybridClusterConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHybridClusterConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateJobTemplateResult> CreateJobTemplateOutcome;
|
||||
typedef std::future<CreateJobTemplateOutcome> CreateJobTemplateOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::CreateJobTemplateRequest&, const CreateJobTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHybridClusterConfigResult> GetHybridClusterConfigOutcome;
|
||||
typedef std::future<GetHybridClusterConfigOutcome> GetHybridClusterConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetHybridClusterConfigRequest&, const GetHybridClusterConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHybridClusterConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResetNodesResult> ResetNodesOutcome;
|
||||
typedef std::future<ResetNodesOutcome> ResetNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ResetNodesRequest&, const ResetNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UninstallSoftwareResult> UninstallSoftwareOutcome;
|
||||
typedef std::future<UninstallSoftwareOutcome> UninstallSoftwareOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::UninstallSoftwareRequest&, const UninstallSoftwareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UninstallSoftwareAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateHybridClusterResult> CreateHybridClusterOutcome;
|
||||
typedef std::future<CreateHybridClusterOutcome> CreateHybridClusterOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::CreateHybridClusterRequest&, const CreateHybridClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHybridClusterAsyncHandler;
|
||||
@@ -289,21 +342,39 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteNodesResult> DeleteNodesOutcome;
|
||||
typedef std::future<DeleteNodesOutcome> DeleteNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteNodesRequest&, const DeleteNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopVisualServiceResult> StopVisualServiceOutcome;
|
||||
typedef std::future<StopVisualServiceOutcome> StopVisualServiceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::StopVisualServiceRequest&, const StopVisualServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopVisualServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobsResult> ListJobsOutcome;
|
||||
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListJobsRequest&, const ListJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
|
||||
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImageResult> DescribeImageOutcome;
|
||||
typedef std::future<DescribeImageOutcome> DescribeImageOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImageRequest&, const DescribeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyUserPasswordsResult> ModifyUserPasswordsOutcome;
|
||||
typedef std::future<ModifyUserPasswordsOutcome> ModifyUserPasswordsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ModifyUserPasswordsRequest&, const ModifyUserPasswordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserPasswordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImageResult> DescribeImageOutcome;
|
||||
typedef std::future<DescribeImageOutcome> DescribeImageOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImageRequest&, const DescribeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteQueueResult> DeleteQueueOutcome;
|
||||
typedef std::future<DeleteQueueOutcome> DeleteQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteQueueRequest&, const DeleteQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCpfsFileSystemsResult> ListCpfsFileSystemsOutcome;
|
||||
typedef std::future<ListCpfsFileSystemsOutcome> ListCpfsFileSystemsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListCpfsFileSystemsRequest&, const ListCpfsFileSystemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCpfsFileSystemsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstalledSoftwareResult> ListInstalledSoftwareOutcome;
|
||||
typedef std::future<ListInstalledSoftwareOutcome> ListInstalledSoftwareOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListInstalledSoftwareRequest&, const ListInstalledSoftwareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstalledSoftwareAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClientResult> UpgradeClientOutcome;
|
||||
typedef std::future<UpgradeClientOutcome> UpgradeClientOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::UpgradeClientRequest&, const UpgradeClientOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClientAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAvailableFileSystemTypesResult> ListAvailableFileSystemTypesOutcome;
|
||||
typedef std::future<ListAvailableFileSystemTypesOutcome> ListAvailableFileSystemTypesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListAvailableFileSystemTypesRequest&, const ListAvailableFileSystemTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAvailableFileSystemTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClustersMetaResult> ListClustersMetaOutcome;
|
||||
typedef std::future<ListClustersMetaOutcome> ListClustersMetaOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListClustersMetaRequest&, const ListClustersMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClustersMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
|
||||
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
|
||||
@@ -328,9 +399,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListQueuesResult> ListQueuesOutcome;
|
||||
typedef std::future<ListQueuesOutcome> ListQueuesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListQueuesRequest&, const ListQueuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQueuesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateJobFileResult> CreateJobFileOutcome;
|
||||
typedef std::future<CreateJobFileOutcome> CreateJobFileOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::CreateJobFileRequest&, const CreateJobFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCloudMetricProfilingsResult> ListCloudMetricProfilingsOutcome;
|
||||
typedef std::future<ListCloudMetricProfilingsOutcome> ListCloudMetricProfilingsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListCloudMetricProfilingsRequest&, const ListCloudMetricProfilingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCloudMetricProfilingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetClusterVolumesResult> GetClusterVolumesOutcome;
|
||||
typedef std::future<GetClusterVolumesOutcome> GetClusterVolumesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetClusterVolumesRequest&, const GetClusterVolumesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetClusterVolumesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetJobUserResult> SetJobUserOutcome;
|
||||
typedef std::future<SetJobUserOutcome> SetJobUserOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::SetJobUserRequest&, const SetJobUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetJobUserAsyncHandler;
|
||||
@@ -340,15 +417,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SubmitJobResult> SubmitJobOutcome;
|
||||
typedef std::future<SubmitJobOutcome> SubmitJobOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::SubmitJobRequest&, const SubmitJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccountingReportResult> GetAccountingReportOutcome;
|
||||
typedef std::future<GetAccountingReportOutcome> GetAccountingReportOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetAccountingReportRequest&, const GetAccountingReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccountingReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRegionsResult> ListRegionsOutcome;
|
||||
typedef std::future<ListRegionsOutcome> ListRegionsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListRegionsRequest&, const ListRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAutoScaleConfigResult> DescribeAutoScaleConfigOutcome;
|
||||
typedef std::future<DescribeAutoScaleConfigOutcome> DescribeAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeAutoScaleConfigRequest&, const DescribeAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoScaleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVisualServiceStatusResult> GetVisualServiceStatusOutcome;
|
||||
typedef std::future<GetVisualServiceStatusOutcome> GetVisualServiceStatusOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetVisualServiceStatusRequest&, const GetVisualServiceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVisualServiceStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunCloudMetricProfilingResult> RunCloudMetricProfilingOutcome;
|
||||
typedef std::future<RunCloudMetricProfilingOutcome> RunCloudMetricProfilingOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::RunCloudMetricProfilingRequest&, const RunCloudMetricProfilingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunCloudMetricProfilingAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartVisualServiceResult> StartVisualServiceOutcome;
|
||||
typedef std::future<StartVisualServiceOutcome> StartVisualServiceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::StartVisualServiceRequest&, const StartVisualServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartVisualServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePriceResult> DescribePriceOutcome;
|
||||
typedef std::future<DescribePriceOutcome> DescribePriceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribePriceRequest&, const DescribePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePriceAsyncHandler;
|
||||
@@ -361,12 +447,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddLocalNodesResult> AddLocalNodesOutcome;
|
||||
typedef std::future<AddLocalNodesOutcome> AddLocalNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddLocalNodesRequest&, const AddLocalNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLocalNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyVisualServicePasswdResult> ModifyVisualServicePasswdOutcome;
|
||||
typedef std::future<ModifyVisualServicePasswdOutcome> ModifyVisualServicePasswdOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ModifyVisualServicePasswdRequest&, const ModifyVisualServicePasswdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyVisualServicePasswdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPreferredEcsTypesResult> ListPreferredEcsTypesOutcome;
|
||||
typedef std::future<ListPreferredEcsTypesOutcome> ListPreferredEcsTypesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListPreferredEcsTypesRequest&, const ListPreferredEcsTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPreferredEcsTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddContainerAppResult> AddContainerAppOutcome;
|
||||
typedef std::future<AddContainerAppOutcome> AddContainerAppOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddContainerAppRequest&, const AddContainerAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddContainerAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::InstallSoftwareResult> InstallSoftwareOutcome;
|
||||
typedef std::future<InstallSoftwareOutcome> InstallSoftwareOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::InstallSoftwareRequest&, const InstallSoftwareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallSoftwareAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClusterLogsResult> ListClusterLogsOutcome;
|
||||
typedef std::future<ListClusterLogsOutcome> ListClusterLogsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListClusterLogsRequest&, const ListClusterLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterLogsAsyncHandler;
|
||||
@@ -376,11 +468,17 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListAvailableEcsTypesResult> ListAvailableEcsTypesOutcome;
|
||||
typedef std::future<ListAvailableEcsTypesOutcome> ListAvailableEcsTypesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListAvailableEcsTypesRequest&, const ListAvailableEcsTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAvailableEcsTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddQueueResult> AddQueueOutcome;
|
||||
typedef std::future<AddQueueOutcome> AddQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddQueueRequest&, const AddQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddQueueAsyncHandler;
|
||||
|
||||
EHPCClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
EHPCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
EHPCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~EHPCClient();
|
||||
DescribeJobOutcome describeJob(const Model::DescribeJobRequest &request)const;
|
||||
void describeJobAsync(const Model::DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeJobOutcomeCallable describeJobCallable(const Model::DescribeJobRequest& request) const;
|
||||
DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const;
|
||||
void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const;
|
||||
@@ -405,21 +503,27 @@ namespace AlibabaCloud
|
||||
ListCurrentClientVersionOutcome listCurrentClientVersion(const Model::ListCurrentClientVersionRequest &request)const;
|
||||
void listCurrentClientVersionAsync(const Model::ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCurrentClientVersionOutcomeCallable listCurrentClientVersionCallable(const Model::ListCurrentClientVersionRequest& request) const;
|
||||
UpdateClusterVolumesOutcome updateClusterVolumes(const Model::UpdateClusterVolumesRequest &request)const;
|
||||
void updateClusterVolumesAsync(const Model::UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateClusterVolumesOutcomeCallable updateClusterVolumesCallable(const Model::UpdateClusterVolumesRequest& request) const;
|
||||
ListNodesByQueueOutcome listNodesByQueue(const Model::ListNodesByQueueRequest &request)const;
|
||||
void listNodesByQueueAsync(const Model::ListNodesByQueueRequest& request, const ListNodesByQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListNodesByQueueOutcomeCallable listNodesByQueueCallable(const Model::ListNodesByQueueRequest& request) const;
|
||||
ModifyContainerAppAttributesOutcome modifyContainerAppAttributes(const Model::ModifyContainerAppAttributesRequest &request)const;
|
||||
void modifyContainerAppAttributesAsync(const Model::ModifyContainerAppAttributesRequest& request, const ModifyContainerAppAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyContainerAppAttributesOutcomeCallable modifyContainerAppAttributesCallable(const Model::ModifyContainerAppAttributesRequest& request) const;
|
||||
SetAutoScaleConfigOutcome setAutoScaleConfig(const Model::SetAutoScaleConfigRequest &request)const;
|
||||
void setAutoScaleConfigAsync(const Model::SetAutoScaleConfigRequest& request, const SetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAutoScaleConfigOutcomeCallable setAutoScaleConfigCallable(const Model::SetAutoScaleConfigRequest& request) const;
|
||||
ListInvocationResultsOutcome listInvocationResults(const Model::ListInvocationResultsRequest &request)const;
|
||||
void listInvocationResultsAsync(const Model::ListInvocationResultsRequest& request, const ListInvocationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInvocationResultsOutcomeCallable listInvocationResultsCallable(const Model::ListInvocationResultsRequest& request) const;
|
||||
AddNodesOutcome addNodes(const Model::AddNodesRequest &request)const;
|
||||
void addNodesAsync(const Model::AddNodesRequest& request, const AddNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddNodesOutcomeCallable addNodesCallable(const Model::AddNodesRequest& request) const;
|
||||
SetAutoScaleConfigOutcome setAutoScaleConfig(const Model::SetAutoScaleConfigRequest &request)const;
|
||||
void setAutoScaleConfigAsync(const Model::SetAutoScaleConfigRequest& request, const SetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAutoScaleConfigOutcomeCallable setAutoScaleConfigCallable(const Model::SetAutoScaleConfigRequest& request) const;
|
||||
ListSoftwaresOutcome listSoftwares(const Model::ListSoftwaresRequest &request)const;
|
||||
void listSoftwaresAsync(const Model::ListSoftwaresRequest& request, const ListSoftwaresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSoftwaresOutcomeCallable listSoftwaresCallable(const Model::ListSoftwaresRequest& request) const;
|
||||
AddNodesOutcome addNodes(const Model::AddNodesRequest &request)const;
|
||||
void addNodesAsync(const Model::AddNodesRequest& request, const AddNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddNodesOutcomeCallable addNodesCallable(const Model::AddNodesRequest& request) const;
|
||||
StopJobsOutcome stopJobs(const Model::StopJobsRequest &request)const;
|
||||
void stopJobsAsync(const Model::StopJobsRequest& request, const StopJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopJobsOutcomeCallable stopJobsCallable(const Model::StopJobsRequest& request) const;
|
||||
@@ -429,12 +533,12 @@ namespace AlibabaCloud
|
||||
GetCloudMetricProfilingOutcome getCloudMetricProfiling(const Model::GetCloudMetricProfilingRequest &request)const;
|
||||
void getCloudMetricProfilingAsync(const Model::GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCloudMetricProfilingOutcomeCallable getCloudMetricProfilingCallable(const Model::GetCloudMetricProfilingRequest& request) const;
|
||||
DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const;
|
||||
void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const;
|
||||
GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const;
|
||||
void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const;
|
||||
DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const;
|
||||
void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const;
|
||||
ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const;
|
||||
void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const;
|
||||
@@ -444,6 +548,9 @@ namespace AlibabaCloud
|
||||
StartClusterOutcome startCluster(const Model::StartClusterRequest &request)const;
|
||||
void startClusterAsync(const Model::StartClusterRequest& request, const StartClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartClusterOutcomeCallable startClusterCallable(const Model::StartClusterRequest& request) const;
|
||||
SetQueueOutcome setQueue(const Model::SetQueueRequest &request)const;
|
||||
void setQueueAsync(const Model::SetQueueRequest& request, const SetQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetQueueOutcomeCallable setQueueCallable(const Model::SetQueueRequest& request) const;
|
||||
ListCommandsOutcome listCommands(const Model::ListCommandsRequest &request)const;
|
||||
void listCommandsAsync(const Model::ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCommandsOutcomeCallable listCommandsCallable(const Model::ListCommandsRequest& request) const;
|
||||
@@ -453,21 +560,21 @@ namespace AlibabaCloud
|
||||
InvokeShellCommandOutcome invokeShellCommand(const Model::InvokeShellCommandRequest &request)const;
|
||||
void invokeShellCommandAsync(const Model::InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InvokeShellCommandOutcomeCallable invokeShellCommandCallable(const Model::InvokeShellCommandRequest& request) const;
|
||||
ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const;
|
||||
void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const;
|
||||
ListFileSystemWithMountTargetsOutcome listFileSystemWithMountTargets(const Model::ListFileSystemWithMountTargetsRequest &request)const;
|
||||
void listFileSystemWithMountTargetsAsync(const Model::ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFileSystemWithMountTargetsOutcomeCallable listFileSystemWithMountTargetsCallable(const Model::ListFileSystemWithMountTargetsRequest& request) const;
|
||||
AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const;
|
||||
void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const;
|
||||
ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const;
|
||||
void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const;
|
||||
ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const;
|
||||
void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const;
|
||||
DescribeImageGatewayConfigOutcome describeImageGatewayConfig(const Model::DescribeImageGatewayConfigRequest &request)const;
|
||||
void describeImageGatewayConfigAsync(const Model::DescribeImageGatewayConfigRequest& request, const DescribeImageGatewayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImageGatewayConfigOutcomeCallable describeImageGatewayConfigCallable(const Model::DescribeImageGatewayConfigRequest& request) const;
|
||||
ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const;
|
||||
void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const;
|
||||
DeleteJobTemplatesOutcome deleteJobTemplates(const Model::DeleteJobTemplatesRequest &request)const;
|
||||
void deleteJobTemplatesAsync(const Model::DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteJobTemplatesOutcomeCallable deleteJobTemplatesCallable(const Model::DeleteJobTemplatesRequest& request) const;
|
||||
@@ -480,15 +587,18 @@ namespace AlibabaCloud
|
||||
GetCloudMetricLogsOutcome getCloudMetricLogs(const Model::GetCloudMetricLogsRequest &request)const;
|
||||
void getCloudMetricLogsAsync(const Model::GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCloudMetricLogsOutcomeCallable getCloudMetricLogsCallable(const Model::GetCloudMetricLogsRequest& request) const;
|
||||
GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const;
|
||||
void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const;
|
||||
CreateJobTemplateOutcome createJobTemplate(const Model::CreateJobTemplateRequest &request)const;
|
||||
void createJobTemplateAsync(const Model::CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateJobTemplateOutcomeCallable createJobTemplateCallable(const Model::CreateJobTemplateRequest& request) const;
|
||||
GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const;
|
||||
void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const;
|
||||
ResetNodesOutcome resetNodes(const Model::ResetNodesRequest &request)const;
|
||||
void resetNodesAsync(const Model::ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResetNodesOutcomeCallable resetNodesCallable(const Model::ResetNodesRequest& request) const;
|
||||
UninstallSoftwareOutcome uninstallSoftware(const Model::UninstallSoftwareRequest &request)const;
|
||||
void uninstallSoftwareAsync(const Model::UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UninstallSoftwareOutcomeCallable uninstallSoftwareCallable(const Model::UninstallSoftwareRequest& request) const;
|
||||
CreateHybridClusterOutcome createHybridCluster(const Model::CreateHybridClusterRequest &request)const;
|
||||
void createHybridClusterAsync(const Model::CreateHybridClusterRequest& request, const CreateHybridClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateHybridClusterOutcomeCallable createHybridClusterCallable(const Model::CreateHybridClusterRequest& request) const;
|
||||
@@ -501,21 +611,39 @@ namespace AlibabaCloud
|
||||
DeleteNodesOutcome deleteNodes(const Model::DeleteNodesRequest &request)const;
|
||||
void deleteNodesAsync(const Model::DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNodesOutcomeCallable deleteNodesCallable(const Model::DeleteNodesRequest& request) const;
|
||||
StopVisualServiceOutcome stopVisualService(const Model::StopVisualServiceRequest &request)const;
|
||||
void stopVisualServiceAsync(const Model::StopVisualServiceRequest& request, const StopVisualServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopVisualServiceOutcomeCallable stopVisualServiceCallable(const Model::StopVisualServiceRequest& request) const;
|
||||
ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const;
|
||||
void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const;
|
||||
CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const;
|
||||
void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const;
|
||||
DescribeImageOutcome describeImage(const Model::DescribeImageRequest &request)const;
|
||||
void describeImageAsync(const Model::DescribeImageRequest& request, const DescribeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImageOutcomeCallable describeImageCallable(const Model::DescribeImageRequest& request) const;
|
||||
ModifyUserPasswordsOutcome modifyUserPasswords(const Model::ModifyUserPasswordsRequest &request)const;
|
||||
void modifyUserPasswordsAsync(const Model::ModifyUserPasswordsRequest& request, const ModifyUserPasswordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyUserPasswordsOutcomeCallable modifyUserPasswordsCallable(const Model::ModifyUserPasswordsRequest& request) const;
|
||||
DescribeImageOutcome describeImage(const Model::DescribeImageRequest &request)const;
|
||||
void describeImageAsync(const Model::DescribeImageRequest& request, const DescribeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImageOutcomeCallable describeImageCallable(const Model::DescribeImageRequest& request) const;
|
||||
DeleteQueueOutcome deleteQueue(const Model::DeleteQueueRequest &request)const;
|
||||
void deleteQueueAsync(const Model::DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const;
|
||||
ListCpfsFileSystemsOutcome listCpfsFileSystems(const Model::ListCpfsFileSystemsRequest &request)const;
|
||||
void listCpfsFileSystemsAsync(const Model::ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCpfsFileSystemsOutcomeCallable listCpfsFileSystemsCallable(const Model::ListCpfsFileSystemsRequest& request) const;
|
||||
ListInstalledSoftwareOutcome listInstalledSoftware(const Model::ListInstalledSoftwareRequest &request)const;
|
||||
void listInstalledSoftwareAsync(const Model::ListInstalledSoftwareRequest& request, const ListInstalledSoftwareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstalledSoftwareOutcomeCallable listInstalledSoftwareCallable(const Model::ListInstalledSoftwareRequest& request) const;
|
||||
UpgradeClientOutcome upgradeClient(const Model::UpgradeClientRequest &request)const;
|
||||
void upgradeClientAsync(const Model::UpgradeClientRequest& request, const UpgradeClientAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClientOutcomeCallable upgradeClientCallable(const Model::UpgradeClientRequest& request) const;
|
||||
ListAvailableFileSystemTypesOutcome listAvailableFileSystemTypes(const Model::ListAvailableFileSystemTypesRequest &request)const;
|
||||
void listAvailableFileSystemTypesAsync(const Model::ListAvailableFileSystemTypesRequest& request, const ListAvailableFileSystemTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAvailableFileSystemTypesOutcomeCallable listAvailableFileSystemTypesCallable(const Model::ListAvailableFileSystemTypesRequest& request) const;
|
||||
ListClustersMetaOutcome listClustersMeta(const Model::ListClustersMetaRequest &request)const;
|
||||
void listClustersMetaAsync(const Model::ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClustersMetaOutcomeCallable listClustersMetaCallable(const Model::ListClustersMetaRequest& request) const;
|
||||
DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const;
|
||||
void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const;
|
||||
@@ -540,9 +668,15 @@ namespace AlibabaCloud
|
||||
ListQueuesOutcome listQueues(const Model::ListQueuesRequest &request)const;
|
||||
void listQueuesAsync(const Model::ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQueuesOutcomeCallable listQueuesCallable(const Model::ListQueuesRequest& request) const;
|
||||
CreateJobFileOutcome createJobFile(const Model::CreateJobFileRequest &request)const;
|
||||
void createJobFileAsync(const Model::CreateJobFileRequest& request, const CreateJobFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateJobFileOutcomeCallable createJobFileCallable(const Model::CreateJobFileRequest& request) const;
|
||||
ListCloudMetricProfilingsOutcome listCloudMetricProfilings(const Model::ListCloudMetricProfilingsRequest &request)const;
|
||||
void listCloudMetricProfilingsAsync(const Model::ListCloudMetricProfilingsRequest& request, const ListCloudMetricProfilingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCloudMetricProfilingsOutcomeCallable listCloudMetricProfilingsCallable(const Model::ListCloudMetricProfilingsRequest& request) const;
|
||||
GetClusterVolumesOutcome getClusterVolumes(const Model::GetClusterVolumesRequest &request)const;
|
||||
void getClusterVolumesAsync(const Model::GetClusterVolumesRequest& request, const GetClusterVolumesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetClusterVolumesOutcomeCallable getClusterVolumesCallable(const Model::GetClusterVolumesRequest& request) const;
|
||||
SetJobUserOutcome setJobUser(const Model::SetJobUserRequest &request)const;
|
||||
void setJobUserAsync(const Model::SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetJobUserOutcomeCallable setJobUserCallable(const Model::SetJobUserRequest& request) const;
|
||||
@@ -552,15 +686,24 @@ namespace AlibabaCloud
|
||||
SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const;
|
||||
void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const;
|
||||
GetAccountingReportOutcome getAccountingReport(const Model::GetAccountingReportRequest &request)const;
|
||||
void getAccountingReportAsync(const Model::GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccountingReportOutcomeCallable getAccountingReportCallable(const Model::GetAccountingReportRequest& request) const;
|
||||
ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const;
|
||||
void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const;
|
||||
DescribeAutoScaleConfigOutcome describeAutoScaleConfig(const Model::DescribeAutoScaleConfigRequest &request)const;
|
||||
void describeAutoScaleConfigAsync(const Model::DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAutoScaleConfigOutcomeCallable describeAutoScaleConfigCallable(const Model::DescribeAutoScaleConfigRequest& request) const;
|
||||
GetVisualServiceStatusOutcome getVisualServiceStatus(const Model::GetVisualServiceStatusRequest &request)const;
|
||||
void getVisualServiceStatusAsync(const Model::GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVisualServiceStatusOutcomeCallable getVisualServiceStatusCallable(const Model::GetVisualServiceStatusRequest& request) const;
|
||||
RunCloudMetricProfilingOutcome runCloudMetricProfiling(const Model::RunCloudMetricProfilingRequest &request)const;
|
||||
void runCloudMetricProfilingAsync(const Model::RunCloudMetricProfilingRequest& request, const RunCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunCloudMetricProfilingOutcomeCallable runCloudMetricProfilingCallable(const Model::RunCloudMetricProfilingRequest& request) const;
|
||||
StartVisualServiceOutcome startVisualService(const Model::StartVisualServiceRequest &request)const;
|
||||
void startVisualServiceAsync(const Model::StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartVisualServiceOutcomeCallable startVisualServiceCallable(const Model::StartVisualServiceRequest& request) const;
|
||||
DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const;
|
||||
void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const;
|
||||
@@ -573,12 +716,18 @@ namespace AlibabaCloud
|
||||
AddLocalNodesOutcome addLocalNodes(const Model::AddLocalNodesRequest &request)const;
|
||||
void addLocalNodesAsync(const Model::AddLocalNodesRequest& request, const AddLocalNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddLocalNodesOutcomeCallable addLocalNodesCallable(const Model::AddLocalNodesRequest& request) const;
|
||||
ModifyVisualServicePasswdOutcome modifyVisualServicePasswd(const Model::ModifyVisualServicePasswdRequest &request)const;
|
||||
void modifyVisualServicePasswdAsync(const Model::ModifyVisualServicePasswdRequest& request, const ModifyVisualServicePasswdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyVisualServicePasswdOutcomeCallable modifyVisualServicePasswdCallable(const Model::ModifyVisualServicePasswdRequest& request) const;
|
||||
ListPreferredEcsTypesOutcome listPreferredEcsTypes(const Model::ListPreferredEcsTypesRequest &request)const;
|
||||
void listPreferredEcsTypesAsync(const Model::ListPreferredEcsTypesRequest& request, const ListPreferredEcsTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPreferredEcsTypesOutcomeCallable listPreferredEcsTypesCallable(const Model::ListPreferredEcsTypesRequest& request) const;
|
||||
AddContainerAppOutcome addContainerApp(const Model::AddContainerAppRequest &request)const;
|
||||
void addContainerAppAsync(const Model::AddContainerAppRequest& request, const AddContainerAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddContainerAppOutcomeCallable addContainerAppCallable(const Model::AddContainerAppRequest& request) const;
|
||||
InstallSoftwareOutcome installSoftware(const Model::InstallSoftwareRequest &request)const;
|
||||
void installSoftwareAsync(const Model::InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InstallSoftwareOutcomeCallable installSoftwareCallable(const Model::InstallSoftwareRequest& request) const;
|
||||
ListClusterLogsOutcome listClusterLogs(const Model::ListClusterLogsRequest &request)const;
|
||||
void listClusterLogsAsync(const Model::ListClusterLogsRequest& request, const ListClusterLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClusterLogsOutcomeCallable listClusterLogsCallable(const Model::ListClusterLogsRequest& request) const;
|
||||
@@ -588,6 +737,9 @@ namespace AlibabaCloud
|
||||
ListAvailableEcsTypesOutcome listAvailableEcsTypes(const Model::ListAvailableEcsTypesRequest &request)const;
|
||||
void listAvailableEcsTypesAsync(const Model::ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAvailableEcsTypesOutcomeCallable listAvailableEcsTypesCallable(const Model::ListAvailableEcsTypesRequest& request) const;
|
||||
AddQueueOutcome addQueue(const Model::AddQueueRequest &request)const;
|
||||
void addQueueAsync(const Model::AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getImageOwnerAlias()const;
|
||||
void setImageOwnerAlias(const std::string& imageOwnerAlias);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getAutoRenew()const;
|
||||
@@ -61,8 +63,12 @@ namespace AlibabaCloud
|
||||
void setEcsChargeType(const std::string& ecsChargeType);
|
||||
std::string getCreateMode()const;
|
||||
void setCreateMode(const std::string& createMode);
|
||||
int getSystemDiskSize()const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
|
||||
|
||||
@@ -76,11 +82,14 @@ namespace AlibabaCloud
|
||||
std::string jobQueue_;
|
||||
std::string accessKeyId_;
|
||||
std::string imageOwnerAlias_;
|
||||
std::string vSwitchId_;
|
||||
std::string periodUnit_;
|
||||
std::string autoRenew_;
|
||||
std::string ecsChargeType_;
|
||||
std::string createMode_;
|
||||
int systemDiskSize_;
|
||||
std::string instanceType_;
|
||||
std::string zoneId_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
|
||||
};
|
||||
|
||||
54
ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h
Normal file
54
ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT AddQueueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddQueueRequest();
|
||||
~AddQueueRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_
|
||||
49
ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h
Normal file
49
ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h
Normal 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_EHPC_MODEL_ADDQUEUERESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT AddQueueResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddQueueResult();
|
||||
explicit AddQueueResult(const std::string &payload);
|
||||
~AddQueueResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_
|
||||
@@ -30,6 +30,18 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT CreateClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
struct AdditionalVolumes
|
||||
{
|
||||
std::string volumeType;
|
||||
std::string volumeProtocol;
|
||||
std::string localDirectory;
|
||||
std::string remoteDirectory;
|
||||
RepeatList roles;
|
||||
std::string volumeId;
|
||||
std::string volumeMountpoint;
|
||||
std::string location;
|
||||
std::string jobQueue;
|
||||
};
|
||||
struct PostInstallScript
|
||||
{
|
||||
std::string args;
|
||||
@@ -48,6 +60,8 @@ namespace AlibabaCloud
|
||||
void setSccClusterId(const std::string& sccClusterId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::vector<AdditionalVolumes> getAdditionalVolumes()const;
|
||||
void setAdditionalVolumes(const std::vector<AdditionalVolumes>& additionalVolumes);
|
||||
std::string getEcsOrderManagerInstanceType()const;
|
||||
void setEcsOrderManagerInstanceType(const std::string& ecsOrderManagerInstanceType);
|
||||
std::string getEhpcVersion()const;
|
||||
@@ -76,10 +90,16 @@ namespace AlibabaCloud
|
||||
void setDeployMode(const std::string& deployMode);
|
||||
int getEcsOrderManagerCount()const;
|
||||
void setEcsOrderManagerCount(int ecsOrderManagerCount);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
int getEcsOrderLoginCount()const;
|
||||
void setEcsOrderLoginCount(int ecsOrderLoginCount);
|
||||
std::string getRemoteVisEnable()const;
|
||||
void setRemoteVisEnable(const std::string& remoteVisEnable);
|
||||
int getSystemDiskSize()const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
|
||||
int getAutoRenewPeriod()const;
|
||||
@@ -132,6 +152,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string sccClusterId_;
|
||||
std::string imageId_;
|
||||
std::vector<AdditionalVolumes> additionalVolumes_;
|
||||
std::string ecsOrderManagerInstanceType_;
|
||||
std::string ehpcVersion_;
|
||||
std::string accountType_;
|
||||
@@ -146,8 +167,11 @@ namespace AlibabaCloud
|
||||
std::string volumeType_;
|
||||
std::string deployMode_;
|
||||
int ecsOrderManagerCount_;
|
||||
std::string resourceGroupId_;
|
||||
std::string password_;
|
||||
int ecsOrderLoginCount_;
|
||||
std::string remoteVisEnable_;
|
||||
int systemDiskSize_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user