1 Star 37 Fork 9

tencentcloud / tencentcloud-sdk-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TrroClient.java 11.34 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2023-10-19 16:03 . release 3.1.884
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 com.tencentcloudapi.trro.v20220325;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.trro.v20220325.models.*;
public class TrroClient extends AbstractClient{
private static String endpoint = "trro.tencentcloudapi.com";
private static String service = "trro";
private static String version = "2022-03-25";
public TrroClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public TrroClient(Credential credential, String region, ClientProfile profile) {
super(TrroClient.endpoint, TrroClient.version, credential, region, profile);
}
/**
*用于批量删除设备
* @param req BatchDeleteDevicesRequest
* @return BatchDeleteDevicesResponse
* @throws TencentCloudSDKException
*/
public BatchDeleteDevicesResponse BatchDeleteDevices(BatchDeleteDevicesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchDeleteDevices", BatchDeleteDevicesResponse.class);
}
/**
*用于批量删除修改权限配置
* @param req BatchDeletePolicyRequest
* @return BatchDeletePolicyResponse
* @throws TencentCloudSDKException
*/
public BatchDeletePolicyResponse BatchDeletePolicy(BatchDeletePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchDeletePolicy", BatchDeletePolicyResponse.class);
}
/**
*为推流设备绑定license,优先绑定到期时间最近的,到期时间相同优先绑定月包
* @param req BoundLicensesRequest
* @return BoundLicensesResponse
* @throws TencentCloudSDKException
*/
public BoundLicensesResponse BoundLicenses(BoundLicensesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BoundLicenses", BoundLicensesResponse.class);
}
/**
*用于创建设备
* @param req CreateDeviceRequest
* @return CreateDeviceResponse
* @throws TencentCloudSDKException
*/
public CreateDeviceResponse CreateDevice(CreateDeviceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDevice", CreateDeviceResponse.class);
}
/**
*用于创建项目
* @param req CreateProjectRequest
* @return CreateProjectResponse
* @throws TencentCloudSDKException
*/
public CreateProjectResponse CreateProject(CreateProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateProject", CreateProjectResponse.class);
}
/**
*用于删除项目
* @param req DeleteProjectRequest
* @return DeleteProjectResponse
* @throws TencentCloudSDKException
*/
public DeleteProjectResponse DeleteProject(DeleteProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteProject", DeleteProjectResponse.class);
}
/**
*用于获取指定设备信息
* @param req DescribeDeviceInfoRequest
* @return DescribeDeviceInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeDeviceInfoResponse DescribeDeviceInfo(DescribeDeviceInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDeviceInfo", DescribeDeviceInfoResponse.class);
}
/**
*用于获取设备信息列表
* @param req DescribeDeviceListRequest
* @return DescribeDeviceListResponse
* @throws TencentCloudSDKException
*/
public DescribeDeviceListResponse DescribeDeviceList(DescribeDeviceListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDeviceList", DescribeDeviceListResponse.class);
}
/**
*获取设备会话数据详单
* @param req DescribeDeviceSessionDetailsRequest
* @return DescribeDeviceSessionDetailsResponse
* @throws TencentCloudSDKException
*/
public DescribeDeviceSessionDetailsResponse DescribeDeviceSessionDetails(DescribeDeviceSessionDetailsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDeviceSessionDetails", DescribeDeviceSessionDetailsResponse.class);
}
/**
*获取设备会话列表
* @param req DescribeDeviceSessionListRequest
* @return DescribeDeviceSessionListResponse
* @throws TencentCloudSDKException
*/
public DescribeDeviceSessionListResponse DescribeDeviceSessionList(DescribeDeviceSessionListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDeviceSessionList", DescribeDeviceSessionListResponse.class);
}
/**
*用于查看权限配置
* @param req DescribePolicyRequest
* @return DescribePolicyResponse
* @throws TencentCloudSDKException
*/
public DescribePolicyResponse DescribePolicy(DescribePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePolicy", DescribePolicyResponse.class);
}
/**
*用于获取项目信息
* @param req DescribeProjectInfoRequest
* @return DescribeProjectInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectInfoResponse DescribeProjectInfo(DescribeProjectInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjectInfo", DescribeProjectInfoResponse.class);
}
/**
*用于获取项目列表
* @param req DescribeProjectListRequest
* @return DescribeProjectListResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectListResponse DescribeProjectList(DescribeProjectListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjectList", DescribeProjectListResponse.class);
}
/**
*获取最新设备会话列表
* @param req DescribeRecentSessionListRequest
* @return DescribeRecentSessionListResponse
* @throws TencentCloudSDKException
*/
public DescribeRecentSessionListResponse DescribeRecentSessionList(DescribeRecentSessionListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRecentSessionList", DescribeRecentSessionListResponse.class);
}
/**
*获取会话统计值
* @param req DescribeSessionStatisticsRequest
* @return DescribeSessionStatisticsResponse
* @throws TencentCloudSDKException
*/
public DescribeSessionStatisticsResponse DescribeSessionStatistics(DescribeSessionStatisticsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSessionStatistics", DescribeSessionStatisticsResponse.class);
}
/**
*获取各时间段的会话统计值
* @param req DescribeSessionStatisticsByIntervalRequest
* @return DescribeSessionStatisticsByIntervalResponse
* @throws TencentCloudSDKException
*/
public DescribeSessionStatisticsByIntervalResponse DescribeSessionStatisticsByInterval(DescribeSessionStatisticsByIntervalRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSessionStatisticsByInterval", DescribeSessionStatisticsByIntervalResponse.class);
}
/**
*获取设备已经绑定的可用授权数量
* @param req GetDeviceLicenseRequest
* @return GetDeviceLicenseResponse
* @throws TencentCloudSDKException
*/
public GetDeviceLicenseResponse GetDeviceLicense(GetDeviceLicenseRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetDeviceLicense", GetDeviceLicenseResponse.class);
}
/**
*查询用户设备的授权绑定情况
* @param req GetDevicesRequest
* @return GetDevicesResponse
* @throws TencentCloudSDKException
*/
public GetDevicesResponse GetDevices(GetDevicesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetDevices", GetDevicesResponse.class);
}
/**
*统计license类型数量
* @param req GetLicenseStatRequest
* @return GetLicenseStatResponse
* @throws TencentCloudSDKException
*/
public GetLicenseStatResponse GetLicenseStat(GetLicenseStatRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetLicenseStat", GetLicenseStatResponse.class);
}
/**
*按授权查看license列表
* @param req GetLicensesRequest
* @return GetLicensesResponse
* @throws TencentCloudSDKException
*/
public GetLicensesResponse GetLicenses(GetLicensesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetLicenses", GetLicensesResponse.class);
}
/**
*用于修改设备信息
* @param req ModifyDeviceRequest
* @return ModifyDeviceResponse
* @throws TencentCloudSDKException
*/
public ModifyDeviceResponse ModifyDevice(ModifyDeviceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDevice", ModifyDeviceResponse.class);
}
/**
*用于修改权限配置
* @param req ModifyPolicyRequest
* @return ModifyPolicyResponse
* @throws TencentCloudSDKException
*/
public ModifyPolicyResponse ModifyPolicy(ModifyPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyPolicy", ModifyPolicyResponse.class);
}
/**
*用于修改项目信息
* @param req ModifyProjectRequest
* @return ModifyProjectResponse
* @throws TencentCloudSDKException
*/
public ModifyProjectResponse ModifyProject(ModifyProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyProject", ModifyProjectResponse.class);
}
}
1
https://gitee.com/tencentcloud/tencentcloud-sdk-java.git
git@gitee.com:tencentcloud/tencentcloud-sdk-java.git
tencentcloud
tencentcloud-sdk-java
tencentcloud-sdk-java
master

搜索帮助