-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: rolling update for 1.2.7-release (#58)
- Loading branch information
1 parent
c61a422
commit eb9a611
Showing
45 changed files
with
1,507 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.6-release | ||
1.2.7-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>ucloud-sdk-java</artifactId> | ||
<groupId>cn.ucloud</groupId> | ||
<version>1.2.7-release</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ucloud-sdk-java-udi</artifactId> | ||
<version>1.2.7-release</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>cn.ucloud</groupId> | ||
<artifactId>ucloud-sdk-java-common</artifactId> | ||
<version>1.2.7-release</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
114 changes: 114 additions & 0 deletions
114
ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
/** | ||
* Copyright 2021 UCloud Technology Co., Ltd. | ||
* | ||
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
* except in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* <p>http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* <p>Unless required by applicable law or agreed to in writing, software distributed under the | ||
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package cn.ucloud.udi.client; | ||
|
||
import cn.ucloud.common.client.DefaultClient; | ||
import cn.ucloud.common.config.Config; | ||
import cn.ucloud.common.credential.Credential; | ||
import cn.ucloud.common.exception.UCloudException; | ||
import cn.ucloud.udi.models.CreateFunctionTemplateRequest; | ||
import cn.ucloud.udi.models.CreateFunctionTemplateResponse; | ||
import cn.ucloud.udi.models.CreateMediaTaskRequest; | ||
import cn.ucloud.udi.models.CreateMediaTaskResponse; | ||
import cn.ucloud.udi.models.DeleteFunctionTemplateRequest; | ||
import cn.ucloud.udi.models.DeleteFunctionTemplateResponse; | ||
import cn.ucloud.udi.models.DescribeFunctionTemplateRequest; | ||
import cn.ucloud.udi.models.DescribeFunctionTemplateResponse; | ||
import cn.ucloud.udi.models.DescribeMediaFunctionsRequest; | ||
import cn.ucloud.udi.models.DescribeMediaFunctionsResponse; | ||
import cn.ucloud.udi.models.DescribeMediaTaskRequest; | ||
import cn.ucloud.udi.models.DescribeMediaTaskResponse; | ||
|
||
/** This client is used to call actions of **UDI** service */ | ||
public class UDIClient extends DefaultClient implements UDIClientInterface { | ||
public UDIClient(Config config, Credential credential) { | ||
super(config, credential); | ||
} | ||
|
||
/** | ||
* CreateFunctionTemplate - 创建功能模板 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public CreateFunctionTemplateResponse createFunctionTemplate( | ||
CreateFunctionTemplateRequest request) throws UCloudException { | ||
request.setAction("CreateFunctionTemplate"); | ||
return (CreateFunctionTemplateResponse) | ||
this.invoke(request, CreateFunctionTemplateResponse.class); | ||
} | ||
|
||
/** | ||
* CreateMediaTask - 创建媒体任务 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public CreateMediaTaskResponse createMediaTask(CreateMediaTaskRequest request) | ||
throws UCloudException { | ||
request.setAction("CreateMediaTask"); | ||
return (CreateMediaTaskResponse) this.invoke(request, CreateMediaTaskResponse.class); | ||
} | ||
|
||
/** | ||
* DeleteFunctionTemplate - 删除功能模板 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public DeleteFunctionTemplateResponse deleteFunctionTemplate( | ||
DeleteFunctionTemplateRequest request) throws UCloudException { | ||
request.setAction("DeleteFunctionTemplate"); | ||
return (DeleteFunctionTemplateResponse) | ||
this.invoke(request, DeleteFunctionTemplateResponse.class); | ||
} | ||
|
||
/** | ||
* DescribeFunctionTemplate - 获取功能模板 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public DescribeFunctionTemplateResponse describeFunctionTemplate( | ||
DescribeFunctionTemplateRequest request) throws UCloudException { | ||
request.setAction("DescribeFunctionTemplate"); | ||
return (DescribeFunctionTemplateResponse) | ||
this.invoke(request, DescribeFunctionTemplateResponse.class); | ||
} | ||
|
||
/** | ||
* DescribeMediaFunctions - 获取多媒体功能 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public DescribeMediaFunctionsResponse describeMediaFunctions( | ||
DescribeMediaFunctionsRequest request) throws UCloudException { | ||
request.setAction("DescribeMediaFunctions"); | ||
return (DescribeMediaFunctionsResponse) | ||
this.invoke(request, DescribeMediaFunctionsResponse.class); | ||
} | ||
|
||
/** | ||
* DescribeMediaTask - 描述媒体任务 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public DescribeMediaTaskResponse describeMediaTask(DescribeMediaTaskRequest request) | ||
throws UCloudException { | ||
request.setAction("DescribeMediaTask"); | ||
return (DescribeMediaTaskResponse) this.invoke(request, DescribeMediaTaskResponse.class); | ||
} | ||
} |
Oops, something went wrong.