@@ -53,7 +53,7 @@ sudo make install
5353
5454``` bash
5555git clone https://github.com/github-sdk/g42cloud-sdk-cpp.git
56- cd g42cloud-sdk-cpp-v3
56+ cd g42cloud-sdk-cpp
5757mkdir build
5858cd build
5959cmake ..
@@ -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
78782 . choose ` File ` -> ` Settings `
7979
@@ -90,7 +90,7 @@ vcpkg install curl cpprestsdk boost openssl spdlog
9090choose ` Build ` -> ` Install ` after compilation.
9191
9292After 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