Skip to content

Commit a3ead7b

Browse files
committed
release 0.0.2-beta source code for cpp
1 parent cf3cf6e commit a3ead7b

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 0.0.2-beta 2022-11-29
2+
3+
### G42Cloud SDK Core
4+
5+
- _Features_
6+
- None
7+
- _Bug Fix_
8+
- Fix some errors in documentation
9+
- _Change_
10+
- None
11+
112
# 0.0.1-beta 2022-11-26
213

314
### G42Cloud SDK ECS

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sudo make install
5353

5454
``` bash
5555
git clone https://github.com/github-sdk/g42cloud-sdk-cpp.git
56-
cd g42cloud-sdk-cpp-v3
56+
cd g42cloud-sdk-cpp
5757
mkdir build
5858
cd build
5959
cmake ..
@@ -73,7 +73,7 @@ vcpkg install curl cpprestsdk boost openssl spdlog
7373

7474
#### Step 2: Build By CLion
7575

76-
1. open directory `g42cloud-sdk-cpp-v3` by clion
76+
1. open directory `g42cloud-sdk-cpp` by clion
7777

7878
2. choose `File` -> `Settings`
7979

@@ -90,7 +90,7 @@ vcpkg install curl cpprestsdk boost openssl spdlog
9090
choose `Build` -> `Install` after compilation.
9191

9292
After the preceding commands completed, **the installation directory of C++ SDK**
93-
is `C:\Program File (x86)\g42cloud-sdk-cpp-v3`.
93+
is `C:\Program File (x86)\g42cloud-sdk-cpp`.
9494

9595
## Code example
9696

@@ -341,24 +341,8 @@ auto client = EcsClient::newBuilder()
341341
```
342342
343343
* Global Services
344-
345-
```c++
346-
// add dependency for the {{Service}}Region
347-
#include <G42Cloud/devstar/v1/DevstarRegion.h>
348-
#include <G42Cloud/devstar/v1/DevstarClient.h>
349-
using namespace G42Cloud::Sdk::Devstar::V1;
350-
351-
auto auth = std::make_unique<GlobalCredentials>();
352-
auth->withAk(ak).withSk(sk);
353-
354-
// Initialize the credentials, projectId or domainId could be unassigned in this situation, take initializing GlobalCredentials for example
355-
auto client = DevStarClient::newBuilder()
356-
.withCredentials(std::unique_ptr<Credentials>(auth.release()))
357-
.withHttpConfig(httpConfig)
358-
.withFileLog(R"(.\log.txt)", true)
359-
.withStreamLog(true)
360-
.withRegion(DevstarRegion::valueOf("ae-ad-1"))
361-
.build();
344+
```
345+
no global service is supported up to now.
362346
```
363347
364348
**Notice:**

0 commit comments

Comments
 (0)