Skip to content
Huawei CloudStream Service SDK and example for Java and Scala.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cs-spark-connector
cs-tool
huaweicloud-cs-examples
huaweicloud-cs-java-sdk
huaweicloud-cs-udf-example
.gitignore
LICENSE
README.md

README.md

Huawei Cloud CS SDK for Scala and Java

The Huawei Cloud CS Sdk enables Scala and Java developers to easily work with Huawei Cloud CS. You can get started in minutes using Maven or sbt.

Quick links:

SDK

  • huaweicloud-cs-java-sdk is for Java

Deploy to OSS

GPG_TTY=$(tty);export GPG_TTY;mvn clean deploy -Dgpg.passphrase=xxxx

add the distributionManagement to the pom. # todo add deploy script

<distributionManagement>
    <snapshotRepository>
        <id>oss-snapshot</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
        <id>oss-release</id>
        <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
</distributionManagement>

User authorization

...

//create API client
ApiClient apiClient = new ApiClient("regionName");

//use token authentication method
apiClient.useToken("accountName", "userName", "password", "projectId");

//or use authentication method with aksk
apiClient.useAksk("ak", "sk");

JobApi jobApi = new JobApi(apiClient);
...

Licence

Apache License 2.0

You can’t perform that action at this time.