Skip to content

Commit 367b991

Browse files
committed
Generated csharp 2023-01-01 for Dytnsapi.
1 parent eccb9be commit 367b991

8 files changed

+246
-43
lines changed

dytnsapi-20230101/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-02 Version: 1.0.3
2+
- Generated csharp 2023-01-01 for Dytnsapi.
3+
14
2024-03-12 Version: 1.0.2
25
- Update API GetPhoneNumberIdentificationUrl: update param Ip.
36

dytnsapi-20230101/core/Client.cs

Lines changed: 140 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ public string GetEndpoint(string productId, string regionId, string endpointRule
3737
return AlibabaCloud.EndpointUtil.Common.GetEndpointRules(productId, regionId, endpointRule, network, suffix);
3838
}
3939

40+
/// <term><b>Summary:</b></term>
41+
/// <summary>
42+
/// <para>Obtains the verification result of your phone number.</para>
43+
/// </summary>
44+
///
45+
/// <param name="request">
46+
/// GetPhoneNumberIdentificationResultRequest
47+
/// </param>
48+
/// <param name="runtime">
49+
/// runtime options for this request RuntimeOptions
50+
/// </param>
51+
///
52+
/// <returns>
53+
/// GetPhoneNumberIdentificationResultResponse
54+
/// </returns>
4055
public GetPhoneNumberIdentificationResultResponse GetPhoneNumberIdentificationResultWithOptions(GetPhoneNumberIdentificationResultRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
4156
{
4257
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
@@ -89,9 +104,31 @@ public GetPhoneNumberIdentificationResultResponse GetPhoneNumberIdentificationRe
89104
ReqBodyType = "formData",
90105
BodyType = "json",
91106
};
92-
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(CallApi(params_, req, runtime));
107+
if (AlibabaCloud.TeaUtil.Common.IsUnset(_signatureVersion) || !AlibabaCloud.TeaUtil.Common.EqualString(_signatureVersion, "v4"))
108+
{
109+
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(CallApi(params_, req, runtime));
110+
}
111+
else
112+
{
113+
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(Execute(params_, req, runtime));
114+
}
93115
}
94116

117+
/// <term><b>Summary:</b></term>
118+
/// <summary>
119+
/// <para>Obtains the verification result of your phone number.</para>
120+
/// </summary>
121+
///
122+
/// <param name="request">
123+
/// GetPhoneNumberIdentificationResultRequest
124+
/// </param>
125+
/// <param name="runtime">
126+
/// runtime options for this request RuntimeOptions
127+
/// </param>
128+
///
129+
/// <returns>
130+
/// GetPhoneNumberIdentificationResultResponse
131+
/// </returns>
95132
public async Task<GetPhoneNumberIdentificationResultResponse> GetPhoneNumberIdentificationResultWithOptionsAsync(GetPhoneNumberIdentificationResultRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
96133
{
97134
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
@@ -144,21 +181,67 @@ public async Task<GetPhoneNumberIdentificationResultResponse> GetPhoneNumberIden
144181
ReqBodyType = "formData",
145182
BodyType = "json",
146183
};
147-
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(await CallApiAsync(params_, req, runtime));
184+
if (AlibabaCloud.TeaUtil.Common.IsUnset(_signatureVersion) || !AlibabaCloud.TeaUtil.Common.EqualString(_signatureVersion, "v4"))
185+
{
186+
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(await CallApiAsync(params_, req, runtime));
187+
}
188+
else
189+
{
190+
return TeaModel.ToObject<GetPhoneNumberIdentificationResultResponse>(await ExecuteAsync(params_, req, runtime));
191+
}
148192
}
149193

194+
/// <term><b>Summary:</b></term>
195+
/// <summary>
196+
/// <para>Obtains the verification result of your phone number.</para>
197+
/// </summary>
198+
///
199+
/// <param name="request">
200+
/// GetPhoneNumberIdentificationResultRequest
201+
/// </param>
202+
///
203+
/// <returns>
204+
/// GetPhoneNumberIdentificationResultResponse
205+
/// </returns>
150206
public GetPhoneNumberIdentificationResultResponse GetPhoneNumberIdentificationResult(GetPhoneNumberIdentificationResultRequest request)
151207
{
152208
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
153209
return GetPhoneNumberIdentificationResultWithOptions(request, runtime);
154210
}
155211

212+
/// <term><b>Summary:</b></term>
213+
/// <summary>
214+
/// <para>Obtains the verification result of your phone number.</para>
215+
/// </summary>
216+
///
217+
/// <param name="request">
218+
/// GetPhoneNumberIdentificationResultRequest
219+
/// </param>
220+
///
221+
/// <returns>
222+
/// GetPhoneNumberIdentificationResultResponse
223+
/// </returns>
156224
public async Task<GetPhoneNumberIdentificationResultResponse> GetPhoneNumberIdentificationResultAsync(GetPhoneNumberIdentificationResultRequest request)
157225
{
158226
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
159227
return await GetPhoneNumberIdentificationResultWithOptionsAsync(request, runtime);
160228
}
161229

230+
/// <term><b>Summary:</b></term>
231+
/// <summary>
232+
/// <para>Obtains the verification URL of your phone number.</para>
233+
/// </summary>
234+
///
235+
/// <param name="request">
236+
/// GetPhoneNumberIdentificationUrlRequest
237+
/// </param>
238+
/// <param name="runtime">
239+
/// runtime options for this request RuntimeOptions
240+
/// </param>
241+
///
242+
/// <returns>
243+
/// GetPhoneNumberIdentificationUrlResponse
244+
/// </returns>
162245
public GetPhoneNumberIdentificationUrlResponse GetPhoneNumberIdentificationUrlWithOptions(GetPhoneNumberIdentificationUrlRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
163246
{
164247
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
@@ -211,9 +294,31 @@ public GetPhoneNumberIdentificationUrlResponse GetPhoneNumberIdentificationUrlWi
211294
ReqBodyType = "formData",
212295
BodyType = "json",
213296
};
214-
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(CallApi(params_, req, runtime));
297+
if (AlibabaCloud.TeaUtil.Common.IsUnset(_signatureVersion) || !AlibabaCloud.TeaUtil.Common.EqualString(_signatureVersion, "v4"))
298+
{
299+
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(CallApi(params_, req, runtime));
300+
}
301+
else
302+
{
303+
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(Execute(params_, req, runtime));
304+
}
215305
}
216306

307+
/// <term><b>Summary:</b></term>
308+
/// <summary>
309+
/// <para>Obtains the verification URL of your phone number.</para>
310+
/// </summary>
311+
///
312+
/// <param name="request">
313+
/// GetPhoneNumberIdentificationUrlRequest
314+
/// </param>
315+
/// <param name="runtime">
316+
/// runtime options for this request RuntimeOptions
317+
/// </param>
318+
///
319+
/// <returns>
320+
/// GetPhoneNumberIdentificationUrlResponse
321+
/// </returns>
217322
public async Task<GetPhoneNumberIdentificationUrlResponse> GetPhoneNumberIdentificationUrlWithOptionsAsync(GetPhoneNumberIdentificationUrlRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
218323
{
219324
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
@@ -266,15 +371,46 @@ public async Task<GetPhoneNumberIdentificationUrlResponse> GetPhoneNumberIdentif
266371
ReqBodyType = "formData",
267372
BodyType = "json",
268373
};
269-
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(await CallApiAsync(params_, req, runtime));
374+
if (AlibabaCloud.TeaUtil.Common.IsUnset(_signatureVersion) || !AlibabaCloud.TeaUtil.Common.EqualString(_signatureVersion, "v4"))
375+
{
376+
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(await CallApiAsync(params_, req, runtime));
377+
}
378+
else
379+
{
380+
return TeaModel.ToObject<GetPhoneNumberIdentificationUrlResponse>(await ExecuteAsync(params_, req, runtime));
381+
}
270382
}
271383

384+
/// <term><b>Summary:</b></term>
385+
/// <summary>
386+
/// <para>Obtains the verification URL of your phone number.</para>
387+
/// </summary>
388+
///
389+
/// <param name="request">
390+
/// GetPhoneNumberIdentificationUrlRequest
391+
/// </param>
392+
///
393+
/// <returns>
394+
/// GetPhoneNumberIdentificationUrlResponse
395+
/// </returns>
272396
public GetPhoneNumberIdentificationUrlResponse GetPhoneNumberIdentificationUrl(GetPhoneNumberIdentificationUrlRequest request)
273397
{
274398
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
275399
return GetPhoneNumberIdentificationUrlWithOptions(request, runtime);
276400
}
277401

402+
/// <term><b>Summary:</b></term>
403+
/// <summary>
404+
/// <para>Obtains the verification URL of your phone number.</para>
405+
/// </summary>
406+
///
407+
/// <param name="request">
408+
/// GetPhoneNumberIdentificationUrlRequest
409+
/// </param>
410+
///
411+
/// <returns>
412+
/// GetPhoneNumberIdentificationUrlResponse
413+
/// </returns>
278414
public async Task<GetPhoneNumberIdentificationUrlResponse> GetPhoneNumberIdentificationUrlAsync(GetPhoneNumberIdentificationUrlRequest request)
279415
{
280416
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();

dytnsapi-20230101/core/Models/GetPhoneNumberIdentificationResultRequest.cs

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/**
2-
*
3-
*/
41
// This file is auto-generated, don't edit it. Thanks.
52

63
using System;
@@ -13,14 +10,22 @@ namespace AlibabaCloud.SDK.Dytnsapi20230101.Models
1310
{
1411
public class GetPhoneNumberIdentificationResultRequest : TeaModel {
1512
/// <summary>
16-
/// The authorization code.
13+
/// <para>The authorization code.</para>
14+
/// <para>This parameter is required.</para>
15+
///
16+
/// <b>Example:</b>
17+
/// <para>K***9i7CIe</para>
1718
/// </summary>
1819
[NameInMap("AuthCode")]
1920
[Validation(Required=false)]
2021
public string AuthCode { get; set; }
2122

2223
/// <summary>
23-
/// The external ID.
24+
/// <para>The external ID.</para>
25+
/// <para>This parameter is required.</para>
26+
///
27+
/// <b>Example:</b>
28+
/// <para>149b03d2-a749-4e6e-8f5b-34******5815</para>
2429
/// </summary>
2530
[NameInMap("OutId")]
2631
[Validation(Required=false)]
@@ -31,7 +36,11 @@ public class GetPhoneNumberIdentificationResultRequest : TeaModel {
3136
public long? OwnerId { get; set; }
3237

3338
/// <summary>
34-
/// The phone number of the subscriber. The phone number to be verified must be in the Mobile Station International Subscriber Directory Number (MSISDN) format.
39+
/// <para>The phone number of the subscriber. The phone number to be verified must be in the Mobile Station International Subscriber Directory Number (MSISDN) format.</para>
40+
/// <para>This parameter is required.</para>
41+
///
42+
/// <b>Example:</b>
43+
/// <para>628211****113</para>
3544
/// </summary>
3645
[NameInMap("PhoneNumber")]
3746
[Validation(Required=false)]
@@ -46,14 +55,22 @@ public class GetPhoneNumberIdentificationResultRequest : TeaModel {
4655
public long? ResourceOwnerId { get; set; }
4756

4857
/// <summary>
49-
/// The session ID.
58+
/// <para>The session ID.</para>
59+
/// <para>This parameter is required.</para>
60+
///
61+
/// <b>Example:</b>
62+
/// <para>8636b75e2fcb40c53ffecc2b5947115c.149b03d2a7494e6e8f5b34c915245815.707c7f0d93f4409db0761aa5da94ce01.1686******041</para>
5063
/// </summary>
5164
[NameInMap("SessionId")]
5265
[Validation(Required=false)]
5366
public string SessionId { get; set; }
5467

5568
/// <summary>
56-
/// The session payload.
69+
/// <para>The session payload.</para>
70+
/// <para>This parameter is required.</para>
71+
///
72+
/// <b>Example:</b>
73+
/// <para>uQne0vsuNywXVvI4VP5taHsgDNsd3BwcbmrhjXi58WbxBGFW+e8ufMEi9j89YonphV6NZ1PIeKvboHtU1nsSjZMTcoFPfkjqaORIHdSlPb6vmIzqOnJMsP1KPQ8K1JLXSaAKsB2lQ5A9HCkX2HzDEwje14HYQsnPd/Ka2YWgXuL0N8GE9oYi25d4DdlU0XR52YjSj8GMLSgbW7yNxEPvUCOQG83FZfQqmIWG2+0C/fQ3gdG9WI7AeeHZo4IRKGtQnpjKGtZZl8VoLPNIswDqZeeyjCyZlKUXKrAt4Co9c4I4q8G1jZm53COQJ+DuTiWH7w+tois3WJwFV/HmdlAKt8SqpiVrEv47VQ9V+8FYsdKz3A3CRyBVgNj6wYKKbwaI9BdQoOkbYzzA8CfAKO5w1oYVD2nOcYS/AffbPbE31PJj7SdVvKghwPL56OVdjS9Hd0iW0SMBWD0F1iRNCUNHL3ffHcFjJLdhTrMt8VHSRn0nOlvO1ZaWqMQ0yE0q*************************kXTpoQLo0+0h+CEcf90hTg8XdMhj9B0A3SOINceLlmoZb3czvYl00+CC0075DjOX41YtnuAUfaNYPgLIZkjYyq+JopBQFAkxPUbJHC0oCzB9dQahUthWY38OPBs=</para>
5774
/// </summary>
5875
[NameInMap("SessionPayload")]
5976
[Validation(Required=false)]

dytnsapi-20230101/core/Models/GetPhoneNumberIdentificationResultResponseBody.cs

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,33 @@ namespace AlibabaCloud.SDK.Dytnsapi20230101.Models
1010
{
1111
public class GetPhoneNumberIdentificationResultResponseBody : TeaModel {
1212
/// <summary>
13-
/// The return code. Valid values:
13+
/// <para>The return code. Valid values:</para>
14+
/// <list type="bullet">
15+
/// <item><description>OK: The request is successful.</description></item>
16+
/// <item><description>NoIdentificationResult: No verification result is available or the verification failed.</description></item>
17+
/// <item><description>SessionNotValid: The session is invalid or expired.</description></item>
18+
/// <item><description>MobileNumberIllegal: The format of the phone number is invalid.</description></item>
19+
/// </list>
1420
///
15-
/// * OK: The request is successful.
16-
/// * NoIdentificationResult: No verification result is available or the verification failed.
17-
/// * SessionNotValid: The session is invalid or expired.
18-
/// * MobileNumberIllegal: The format of the phone number is invalid.
21+
/// <b>Example:</b>
22+
/// <para>OK</para>
1923
/// </summary>
2024
[NameInMap("Code")]
2125
[Validation(Required=false)]
2226
public string Code { get; set; }
2327

2428
/// <summary>
25-
/// The returned data.
29+
/// <para>The returned data.</para>
2630
/// </summary>
2731
[NameInMap("Data")]
2832
[Validation(Required=false)]
2933
public GetPhoneNumberIdentificationResultResponseBodyData Data { get; set; }
3034
public class GetPhoneNumberIdentificationResultResponseBodyData : TeaModel {
3135
/// <summary>
32-
/// Indicates whether the phone number passed the verification.
36+
/// <para>Indicates whether the phone number passed the verification.</para>
37+
///
38+
/// <b>Example:</b>
39+
/// <para>true</para>
3340
/// </summary>
3441
[NameInMap("IsIdentified")]
3542
[Validation(Required=false)]
@@ -38,14 +45,20 @@ public class GetPhoneNumberIdentificationResultResponseBodyData : TeaModel {
3845
}
3946

4047
/// <summary>
41-
/// The description of the return code.
48+
/// <para>The description of the return code.</para>
49+
///
50+
/// <b>Example:</b>
51+
/// <para>OK</para>
4252
/// </summary>
4353
[NameInMap("Message")]
4454
[Validation(Required=false)]
4555
public string Message { get; set; }
4656

4757
/// <summary>
48-
/// The request ID.
58+
/// <para>The request ID.</para>
59+
///
60+
/// <b>Example:</b>
61+
/// <para>68A40250-50CD-034C-B728-0BD******177</para>
4962
/// </summary>
5063
[NameInMap("RequestId")]
5164
[Validation(Required=false)]

0 commit comments

Comments
 (0)