Skip to content

Commit

Permalink
release 0.0.10-beta source code
Browse files Browse the repository at this point in the history
  • Loading branch information
unionsdk committed Oct 30, 2023
1 parent c4375f4 commit 14845e1
Show file tree
Hide file tree
Showing 43 changed files with 903 additions and 543 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 0.0.10-beta 2023-10-30

### G42Cloud SDK MPC

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateThumbnailsTask**
- changes of request param
- `- thumbnail_para.percent`
- `- thumbnail_para.type: enum value [PERCENT]`
- **CreateTranscodingTask**
- changes of request param
- `- thumbnail.params.percent`
- `- thumbnail.params.type: enum value [PERCENT]`

# 0.0.9-beta 2023-08-26

### G42Cloud SDK SMS
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<a href="https://www.g42cloud.com/"><img src="https://upload.wikimedia.org/wikipedia/en/4/43/Group_42_Logo.jpg"></a>
<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>
</p>

<h1 align="center">G42 Cloud Java Software Development Kit (Java SDK)</h1>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.9-beta
0.0.10-beta
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<parent>
<groupId>io.github.g42cloud-sdk</groupId>
<version>0.0.9-beta</version>
<version>0.0.10-beta</version>
<artifactId>g42cloud-sdk</artifactId>
</parent>

<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>g42cloud-sdk-core</artifactId>
<version>0.0.9-beta</version>
<version>0.0.10-beta</version>
<name>G42 Cloud SDK for Java Core</name>
<description>Core library for G42 Cloud Java SDK</description>
<url>https://github.com/g42cloud-sdk/g42cloud-sdk-java</url>
Expand Down
26 changes: 24 additions & 2 deletions core/src/main/java/com/g42cloud/sdk/core/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
public final class Constants {
public static final String LINE_SEPARATOR = "\n";

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

public static final String SM3_SIGNING_ALGORITHM = "SDK-HMAC-SM3";
public static final String SDK_HMAC_SM3 = "SDK-HMAC-SM3";

public static final String SDK_ECDSA_P256_SHA256 = "SDK-ECDSA-P256-SHA256";

public static final String SDK_SM2_SM3 = "SDK-SM2-SM3";

public static final String SECURITY_PROVIDER_BGM = "BGMProvider";

Expand Down Expand Up @@ -63,6 +67,8 @@ public final class Constants {

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

public static final String X_SDK_CONTENT_SM3 = "X-Sdk-Content-Sm3";

public static final String X_SUBJECT_TOKEN = "X-Subject-Token";

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

public static final String DEFAULT_PROFILE_DIR_NAME = ".g42cloud";

public static class ErrorMessage {
public static final String NO_DOMAIN_ID_FOUND = "no domain id found," +
" please select one of the following solutions:\n" +
" 1. Manually specify domainId when initializing the credentials," +
" GlobalCredentials cred = new GlobalCredentials().withAk(ak).withSk(sk).withDomainId(domainId)\n" +
" 2. Use the domain account to grant IAM read permission to the current account\n" +
" 3. Replace the ak/sk of the IAM account with the ak/sk of the domain account";

public static final String NO_PROJECT_ID_FOUND = "no project id found," +
" please select one of the following solutions:\n" +
" 1. Manually specify projectId when initializing the credentials," +
" BasicCredentials cred = new BasicCredentials().withAk(ak).withSk(sk).withProjectId(projectId)\n" +
" 2. Use the domain account to grant IAM read permission to the current account\n" +
" 3. Replace the ak/sk of the IAM account with the ak/sk of the domain account";
}

/**
* some special status code
*/
Expand Down
Loading

0 comments on commit 14845e1

Please sign in to comment.