Skip to content

Commit 14845e1

Browse files
committed
release 0.0.10-beta source code
1 parent c4375f4 commit 14845e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+903
-543
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# 0.0.10-beta 2023-10-30
2+
3+
### G42Cloud SDK MPC
4+
5+
- _Features_
6+
- None
7+
- _Bug Fix_
8+
- None
9+
- _Change_
10+
- **CreateThumbnailsTask**
11+
- changes of request param
12+
- `- thumbnail_para.percent`
13+
- `- thumbnail_para.type: enum value [PERCENT]`
14+
- **CreateTranscodingTask**
15+
- changes of request param
16+
- `- thumbnail.params.percent`
17+
- `- thumbnail.params.type: enum value [PERCENT]`
18+
119
# 0.0.9-beta 2023-08-26
220

321
### G42Cloud SDK SMS

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://www.g42cloud.com/"><img src="https://upload.wikimedia.org/wikipedia/en/4/43/Group_42_Logo.jpg"></a>
2+
<a href="https://www.g42cloud.com/"><img src="https://upload.wikimedia.org/wikipedia/en/thumb/9/94/Group_42_logo.png/330px-Group_42_logo.png"></a>
33
</p>
44

55
<h1 align="center">G42 Cloud Java Software Development Kit (Java SDK)</h1>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.9-beta
1+
0.0.10-beta

core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
<parent>
77
<groupId>io.github.g42cloud-sdk</groupId>
8-
<version>0.0.9-beta</version>
8+
<version>0.0.10-beta</version>
99
<artifactId>g42cloud-sdk</artifactId>
1010
</parent>
1111

1212
<modelVersion>4.0.0</modelVersion>
1313
<packaging>jar</packaging>
1414
<artifactId>g42cloud-sdk-core</artifactId>
15-
<version>0.0.9-beta</version>
15+
<version>0.0.10-beta</version>
1616
<name>G42 Cloud SDK for Java Core</name>
1717
<description>Core library for G42 Cloud Java SDK</description>
1818
<url>https://github.com/g42cloud-sdk/g42cloud-sdk-java</url>

core/src/main/java/com/g42cloud/sdk/core/Constants.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@
2727
public final class Constants {
2828
public static final String LINE_SEPARATOR = "\n";
2929

30-
public static final String SDK_SIGNING_ALGORITHM = "SDK-HMAC-SHA256";
30+
public static final String SDK_HMAC_SHA256 = "SDK-HMAC-SHA256";
3131

32-
public static final String SM3_SIGNING_ALGORITHM = "SDK-HMAC-SM3";
32+
public static final String SDK_HMAC_SM3 = "SDK-HMAC-SM3";
33+
34+
public static final String SDK_ECDSA_P256_SHA256 = "SDK-ECDSA-P256-SHA256";
35+
36+
public static final String SDK_SM2_SM3 = "SDK-SM2-SM3";
3337

3438
public static final String SECURITY_PROVIDER_BGM = "BGMProvider";
3539

@@ -63,6 +67,8 @@ public final class Constants {
6367

6468
public static final String X_SDK_CONTENT_SHA256 = "X-Sdk-Content-Sha256";
6569

70+
public static final String X_SDK_CONTENT_SM3 = "X-Sdk-Content-Sm3";
71+
6672
public static final String X_SUBJECT_TOKEN = "X-Subject-Token";
6773

6874
public static final String UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
@@ -135,6 +141,22 @@ public static class MEDIATYPE {
135141

136142
public static final String DEFAULT_PROFILE_DIR_NAME = ".g42cloud";
137143

144+
public static class ErrorMessage {
145+
public static final String NO_DOMAIN_ID_FOUND = "no domain id found," +
146+
" please select one of the following solutions:\n" +
147+
" 1. Manually specify domainId when initializing the credentials," +
148+
" GlobalCredentials cred = new GlobalCredentials().withAk(ak).withSk(sk).withDomainId(domainId)\n" +
149+
" 2. Use the domain account to grant IAM read permission to the current account\n" +
150+
" 3. Replace the ak/sk of the IAM account with the ak/sk of the domain account";
151+
152+
public static final String NO_PROJECT_ID_FOUND = "no project id found," +
153+
" please select one of the following solutions:\n" +
154+
" 1. Manually specify projectId when initializing the credentials," +
155+
" BasicCredentials cred = new BasicCredentials().withAk(ak).withSk(sk).withProjectId(projectId)\n" +
156+
" 2. Use the domain account to grant IAM read permission to the current account\n" +
157+
" 3. Replace the ak/sk of the IAM account with the ak/sk of the domain account";
158+
}
159+
138160
/**
139161
* some special status code
140162
*/

0 commit comments

Comments
 (0)