Skip to content

Commit b20c57b

Browse files
release 3.1.142 source code
1 parent 8d44161 commit b20c57b

File tree

239 files changed

+13600
-1543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+13600
-1543
lines changed

CHANGELOG.md

Lines changed: 427 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG_CN.md

Lines changed: 427 additions & 0 deletions
Large diffs are not rendered by default.

HuaweiCloud.sln

Lines changed: 929 additions & 929 deletions
Large diffs are not rendered by default.

Services/Aad/Aad.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
1616
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
1717
<PackageId>HuaweiCloud.SDK.Aad</PackageId>
18-
<Version>3.1.141</Version>
18+
<Version>3.1.142</Version>
1919
<Authors>HuaweiCloud</Authors>
2020
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
2121
<Company>Huawei Technologies Co., Ltd.</Company>

Services/AntiDDoS/AntiDDoS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
1616
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
1717
<PackageId>HuaweiCloud.SDK.AntiDDoS</PackageId>
18-
<Version>3.1.141</Version>
18+
<Version>3.1.142</Version>
1919
<Authors>HuaweiCloud</Authors>
2020
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
2121
<Company>Huawei Technologies Co., Ltd.</Company>

Services/AntiDDoS/V1/AntiDDoSAsyncClient.cs

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,6 @@ public AsyncInvoker<DeleteDefaultConfigResponse> DeleteDefaultConfigAsyncInvoker
6363
return new AsyncInvoker<DeleteDefaultConfigResponse>(this, "DELETE", request, JsonUtils.DeSerialize<DeleteDefaultConfigResponse>);
6464
}
6565

66-
/// <summary>
67-
/// 查询告警配置信息
68-
///
69-
/// 查询用户配置信息,用户可以通过此接口查询是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
70-
///
71-
/// Please refer to HUAWEI cloud API Explorer for details.
72-
/// </summary>
73-
public async Task<ShowAlertConfigResponse> ShowAlertConfigAsync(ShowAlertConfigRequest showAlertConfigRequest)
74-
{
75-
var urlParam = new Dictionary<string, string>();
76-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/warnalert/alertconfig/query", urlParam);
77-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showAlertConfigRequest);
78-
var response = await DoHttpRequestAsync("GET", request);
79-
return JsonUtils.DeSerialize<ShowAlertConfigResponse>(response);
80-
}
81-
82-
public AsyncInvoker<ShowAlertConfigResponse> ShowAlertConfigAsyncInvoker(ShowAlertConfigRequest showAlertConfigRequest)
83-
{
84-
var urlParam = new Dictionary<string, string>();
85-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/warnalert/alertconfig/query", urlParam);
86-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showAlertConfigRequest);
87-
return new AsyncInvoker<ShowAlertConfigResponse>(this, "GET", request, JsonUtils.DeSerialize<ShowAlertConfigResponse>);
88-
}
89-
9066
/// <summary>
9167
/// 查询Ani-DDoS默认防护策略
9268
///
@@ -112,27 +88,29 @@ public AsyncInvoker<ShowDefaultConfigResponse> ShowDefaultConfigAsyncInvoker(Sho
11288
}
11389

11490
/// <summary>
115-
/// 更新告警配置信息
91+
/// 开通DDoS服务
11692
///
117-
/// 更新用户配置信息,用户可以通过此接口更新是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
93+
/// 开通DDoS服务
11894
///
11995
/// Please refer to HUAWEI cloud API Explorer for details.
12096
/// </summary>
121-
public async Task<UpdateAlertConfigResponse> UpdateAlertConfigAsync(UpdateAlertConfigRequest updateAlertConfigRequest)
97+
public async Task<EnableDefensePolicyResponse> EnableDefensePolicyAsync(EnableDefensePolicyRequest enableDefensePolicyRequest)
12298
{
12399
var urlParam = new Dictionary<string, string>();
124-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/warnalert/alertconfig/update", urlParam);
125-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", updateAlertConfigRequest);
100+
urlParam.Add("floating_ip_id", enableDefensePolicyRequest.FloatingIpId.ToString());
101+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/{floating_ip_id}", urlParam);
102+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", enableDefensePolicyRequest);
126103
var response = await DoHttpRequestAsync("POST", request);
127-
return JsonUtils.DeSerialize<UpdateAlertConfigResponse>(response);
104+
return JsonUtils.DeSerialize<EnableDefensePolicyResponse>(response);
128105
}
129106

130-
public AsyncInvoker<UpdateAlertConfigResponse> UpdateAlertConfigAsyncInvoker(UpdateAlertConfigRequest updateAlertConfigRequest)
107+
public AsyncInvoker<EnableDefensePolicyResponse> EnableDefensePolicyAsyncInvoker(EnableDefensePolicyRequest enableDefensePolicyRequest)
131108
{
132109
var urlParam = new Dictionary<string, string>();
133-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/warnalert/alertconfig/update", urlParam);
134-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", updateAlertConfigRequest);
135-
return new AsyncInvoker<UpdateAlertConfigResponse>(this, "POST", request, JsonUtils.DeSerialize<UpdateAlertConfigResponse>);
110+
urlParam.Add("floating_ip_id", enableDefensePolicyRequest.FloatingIpId.ToString());
111+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/{floating_ip_id}", urlParam);
112+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", enableDefensePolicyRequest);
113+
return new AsyncInvoker<EnableDefensePolicyResponse>(this, "POST", request, JsonUtils.DeSerialize<EnableDefensePolicyResponse>);
136114
}
137115

138116
/// <summary>
@@ -212,27 +190,27 @@ public AsyncInvoker<ListDailyReportResponse> ListDailyReportAsyncInvoker(ListDai
212190
}
213191

214192
/// <summary>
215-
/// 查询Anti-DDoS配置可选范围
193+
/// 查询配额
216194
///
217-
/// 查询系统支持的Anti-DDoS防护策略配置的可选范围,用户根据范围列表选择适合自已业务的防护策略进行Anti-DDoS流量清洗。
195+
/// 查询配额
218196
///
219197
/// Please refer to HUAWEI cloud API Explorer for details.
220198
/// </summary>
221-
public async Task<ListNewConfigsResponse> ListNewConfigsAsync(ListNewConfigsRequest listNewConfigsRequest)
199+
public async Task<ListQuotaResponse> ListQuotaAsync(ListQuotaRequest listQuotaRequest)
222200
{
223201
var urlParam = new Dictionary<string, string>();
224-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/antiddos/query-config-list", urlParam);
225-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listNewConfigsRequest);
202+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/quotas", urlParam);
203+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listQuotaRequest);
226204
var response = await DoHttpRequestAsync("GET", request);
227-
return JsonUtils.DeSerialize<ListNewConfigsResponse>(response);
205+
return JsonUtils.DeSerialize<ListQuotaResponse>(response);
228206
}
229207

230-
public AsyncInvoker<ListNewConfigsResponse> ListNewConfigsAsyncInvoker(ListNewConfigsRequest listNewConfigsRequest)
208+
public AsyncInvoker<ListQuotaResponse> ListQuotaAsyncInvoker(ListQuotaRequest listQuotaRequest)
231209
{
232210
var urlParam = new Dictionary<string, string>();
233-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/antiddos/query-config-list", urlParam);
234-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listNewConfigsRequest);
235-
return new AsyncInvoker<ListNewConfigsResponse>(this, "GET", request, JsonUtils.DeSerialize<ListNewConfigsResponse>);
211+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/quotas", urlParam);
212+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", listQuotaRequest);
213+
return new AsyncInvoker<ListQuotaResponse>(this, "GET", request, JsonUtils.DeSerialize<ListQuotaResponse>);
236214
}
237215

238216
/// <summary>
@@ -312,27 +290,27 @@ public AsyncInvoker<ShowDDosStatusResponse> ShowDDosStatusAsyncInvoker(ShowDDosS
312290
}
313291

314292
/// <summary>
315-
/// 查询Anti-DDoS任务
293+
/// 查询全量日志设置
316294
///
317-
/// 用户查询指定的Anti-DDoS防护配置任务,得到任务当前执行的状态。
295+
/// 查询全量日志设置
318296
///
319297
/// Please refer to HUAWEI cloud API Explorer for details.
320298
/// </summary>
321-
public async Task<ShowNewTaskStatusResponse> ShowNewTaskStatusAsync(ShowNewTaskStatusRequest showNewTaskStatusRequest)
299+
public async Task<ShowLogConfigResponse> ShowLogConfigAsync(ShowLogConfigRequest showLogConfigRequest)
322300
{
323301
var urlParam = new Dictionary<string, string>();
324-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/query-task-status", urlParam);
325-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showNewTaskStatusRequest);
302+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/lts-config", urlParam);
303+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showLogConfigRequest);
326304
var response = await DoHttpRequestAsync("GET", request);
327-
return JsonUtils.DeSerialize<ShowNewTaskStatusResponse>(response);
305+
return JsonUtils.DeSerialize<ShowLogConfigResponse>(response);
328306
}
329307

330-
public AsyncInvoker<ShowNewTaskStatusResponse> ShowNewTaskStatusAsyncInvoker(ShowNewTaskStatusRequest showNewTaskStatusRequest)
308+
public AsyncInvoker<ShowLogConfigResponse> ShowLogConfigAsyncInvoker(ShowLogConfigRequest showLogConfigRequest)
331309
{
332310
var urlParam = new Dictionary<string, string>();
333-
var urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/query-task-status", urlParam);
334-
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showNewTaskStatusRequest);
335-
return new AsyncInvoker<ShowNewTaskStatusResponse>(this, "GET", request, JsonUtils.DeSerialize<ShowNewTaskStatusResponse>);
311+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/lts-config", urlParam);
312+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", showLogConfigRequest);
313+
return new AsyncInvoker<ShowLogConfigResponse>(this, "GET", request, JsonUtils.DeSerialize<ShowLogConfigResponse>);
336314
}
337315

338316
/// <summary>
@@ -361,5 +339,29 @@ public AsyncInvoker<UpdateDDosResponse> UpdateDDosAsyncInvoker(UpdateDDosRequest
361339
return new AsyncInvoker<UpdateDDosResponse>(this, "PUT", request, JsonUtils.DeSerialize<UpdateDDosResponse>);
362340
}
363341

342+
/// <summary>
343+
/// 更新用户全量日志设置
344+
///
345+
/// 更新用户全量日志设置
346+
///
347+
/// Please refer to HUAWEI cloud API Explorer for details.
348+
/// </summary>
349+
public async Task<UpdateLogConfigResponse> UpdateLogConfigAsync(UpdateLogConfigRequest updateLogConfigRequest)
350+
{
351+
var urlParam = new Dictionary<string, string>();
352+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/lts-config", urlParam);
353+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", updateLogConfigRequest);
354+
var response = await DoHttpRequestAsync("PUT", request);
355+
return JsonUtils.DeSerializeNull<UpdateLogConfigResponse>(response);
356+
}
357+
358+
public AsyncInvoker<UpdateLogConfigResponse> UpdateLogConfigAsyncInvoker(UpdateLogConfigRequest updateLogConfigRequest)
359+
{
360+
var urlParam = new Dictionary<string, string>();
361+
var urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/antiddos/lts-config", urlParam);
362+
var request = HttpUtils.InitSdkRequest(urlPath, "application/json", updateLogConfigRequest);
363+
return new AsyncInvoker<UpdateLogConfigResponse>(this, "PUT", request, JsonUtils.DeSerializeNull<UpdateLogConfigResponse>);
364+
}
365+
364366
}
365367
}

0 commit comments

Comments
 (0)