Skip to content

Commit

Permalink
release 3.1.81 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Feb 20, 2024
1 parent 2655018 commit 5426d69
Show file tree
Hide file tree
Showing 82 changed files with 2,565 additions and 802 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 3.1.81 2024-02-20

### HuaweiCloud SDK DCS

- _Features_
- Support the APIs `ListClients`, `ScanClients`, `HangUpClients`, `HangUpKillAllClients`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.80 2024-02-07

### HuaweiCloud SDK GEIP
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 3.1.81 2024-02-20

### HuaweiCloud SDK DCS

- _新增特性_
- 支持接口`ListClients`、`ScanClients`、`HangUpClients`、`HangUpKillAllClients`
- _解决问题_
- 无
- _特性变更_
- 无

# 3.1.80 2024-02-07

### HuaweiCloud SDK GEIP
Expand Down
1,469 changes: 729 additions & 740 deletions HuaweiCloud.sln

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Services/Aad/Aad.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aad</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/AntiDDoS/AntiDDoS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.AntiDDoS</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Aom/Aom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aom</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Aos/Aos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aos</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/As/As.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.As</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Bms/Bms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Bms</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Cbr/Cbr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Cbr</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
6 changes: 6 additions & 0 deletions Services/Cbr/V1/Region/CbrRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public class CbrRegion
"https://cbr.me-east-1.myhuaweicloud.com");
public static readonly Region AE_AD_1 = new Region("ae-ad-1",
"https://cbr.ae-ad-1.myhuaweicloud.com");
public static readonly Region EU_WEST_0 = new Region("eu-west-0",
"https://cbr.eu-west-0.myhuaweicloud.com");
public static readonly Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1",
"https://cbr.my-kualalumpur-1.myhuaweicloud.com");

private static readonly IRegionProvider Provider = RegionProviderChain.GetDefault("CBR");

Expand Down Expand Up @@ -81,6 +85,8 @@ public class CbrRegion
{ "tr-west-1", TR_WEST_1 },
{ "me-east-1", ME_EAST_1 },
{ "ae-ad-1", AE_AD_1 },
{ "eu-west-0", EU_WEST_0 },
{ "my-kualalumpur-1", MY_KUALALUMPUR_1 },
};

public static Region ValueOf(string regionId)
Expand Down
2 changes: 1 addition & 1 deletion Services/Cce/Cce.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Cce</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Cdn/Cdn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Cdn</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Ces/Ces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Ces</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Cfw/Cfw.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Cfw</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Classroom/Classroom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Classroom</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/CloudRtc/CloudRtc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.CloudRtc</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/CodeArtsBuild/CodeArtsBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.CodeArtsBuild</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/CodeArtsDeploy/CodeArtsDeploy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.CodeArtsDeploy</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Csms/Csms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Csms</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Cts/Cts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Cts</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Dbss/Dbss.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Dbss</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Dcs/Dcs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Dcs</PackageId>
<Version>3.1.80</Version>
<Version>3.1.81</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
104 changes: 104 additions & 0 deletions Services/Dcs/V2/DcsAsyncClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,58 @@ public AsyncInvoker<ExportInstancesTaskResponse> ExportInstancesTaskAsyncInvoker
return new AsyncInvoker<ExportInstancesTaskResponse>(this, "POST", request, JsonUtils.DeSerialize<ExportInstancesTaskResponse>);
}

/// <summary>
/// kill指定的会话
///
/// kill指定的会话
///
/// Please refer to HUAWEI cloud API Explorer for details.
/// </summary>
public async Task<HangUpClientsResponse> HangUpClientsAsync(HangUpClientsRequest hangUpClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", hangUpClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients/kill", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", hangUpClientsRequest);
var response = await DoHttpRequestAsync("POST", request);
return JsonUtils.DeSerializeNull<HangUpClientsResponse>(response);
}

public AsyncInvoker<HangUpClientsResponse> HangUpClientsAsyncInvoker(HangUpClientsRequest hangUpClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", hangUpClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients/kill", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", hangUpClientsRequest);
return new AsyncInvoker<HangUpClientsResponse>(this, "POST", request, JsonUtils.DeSerializeNull<HangUpClientsResponse>);
}

/// <summary>
/// 下发kill指定节点或实例的全部会话任务
///
/// 下发kill指定节点或实例的全部会话任务
///
/// Please refer to HUAWEI cloud API Explorer for details.
/// </summary>
public async Task<HangUpKillAllClientsResponse> HangUpKillAllClientsAsync(HangUpKillAllClientsRequest hangUpKillAllClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", hangUpKillAllClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients/kill-all", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", hangUpKillAllClientsRequest);
var response = await DoHttpRequestAsync("POST", request);
return JsonUtils.DeSerializeNull<HangUpKillAllClientsResponse>(response);
}

public AsyncInvoker<HangUpKillAllClientsResponse> HangUpKillAllClientsAsyncInvoker(HangUpKillAllClientsRequest hangUpKillAllClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", hangUpKillAllClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients/kill-all", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", hangUpKillAllClientsRequest);
return new AsyncInvoker<HangUpKillAllClientsResponse>(this, "POST", request, JsonUtils.DeSerializeNull<HangUpKillAllClientsResponse>);
}

/// <summary>
/// 查询ACL账户列表
///
Expand Down Expand Up @@ -1142,6 +1194,32 @@ public AsyncInvoker<ListCenterTaskResponse> ListCenterTaskAsyncInvoker(ListCente
return new AsyncInvoker<ListCenterTaskResponse>(this, "GET", request, JsonUtils.DeSerialize<ListCenterTaskResponse>);
}

/// <summary>
/// 获取会话列表
///
/// 获取会话列表
///
/// Please refer to HUAWEI cloud API Explorer for details.
/// </summary>
public async Task<ListClientsResponse> ListClientsAsync(ListClientsRequest listClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", listClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listClientsRequest);
var response = await DoHttpRequestAsync("GET", request);
return JsonUtils.DeSerialize<ListClientsResponse>(response);
}

public AsyncInvoker<ListClientsResponse> ListClientsAsyncInvoker(ListClientsRequest listClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", listClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listClientsRequest);
return new AsyncInvoker<ListClientsResponse>(this, "GET", request, JsonUtils.DeSerialize<ListClientsResponse>);
}

/// <summary>
/// 查询实例参数修改记录列表
///
Expand Down Expand Up @@ -1831,6 +1909,32 @@ public AsyncInvoker<RestoreInstanceResponse> RestoreInstanceAsyncInvoker(Restore
return new AsyncInvoker<RestoreInstanceResponse>(this, "POST", request, JsonUtils.DeSerialize<RestoreInstanceResponse>);
}

/// <summary>
/// 下发查询会话列表任务
///
/// 下发查询会话列表任务
///
/// Please refer to HUAWEI cloud API Explorer for details.
/// </summary>
public async Task<ScanClientsResponse> ScanClientsAsync(ScanClientsRequest scanClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", scanClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", scanClientsRequest);
var response = await DoHttpRequestAsync("POST", request);
return JsonUtils.DeSerializeNull<ScanClientsResponse>(response);
}

public AsyncInvoker<ScanClientsResponse> ScanClientsAsyncInvoker(ScanClientsRequest scanClientsRequest)
{
var urlParam = new Dictionary<string, string>();
urlParam.Add("instance_id", scanClientsRequest.InstanceId.ToString());
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/instances/{instance_id}/clients", urlParam);
var request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", scanClientsRequest);
return new AsyncInvoker<ScanClientsResponse>(this, "POST", request, JsonUtils.DeSerializeNull<ScanClientsResponse>);
}

/// <summary>
/// 立刻扫描过期Key
///
Expand Down
Loading

0 comments on commit 5426d69

Please sign in to comment.