Skip to content

Commit 1251d6b

Browse files
committed
Support API CreateService.
1 parent 5794d9d commit 1251d6b

15 files changed

+1304
-15
lines changed

apig-20240327/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2025-02-26 Version: 3.1.0
2+
- Support API CreateService.
3+
- Support API GetService.
4+
- Support API ListHttpApiRoutes.
5+
- Support API ListServices.
6+
7+
18
2025-02-14 Version: 3.0.0
29
- Support API ChangeResourceGroup.
310
- Support API CreateHttpApiRoute.

apig-20240327/core/Client.cs

Lines changed: 719 additions & 11 deletions
Large diffs are not rendered by default.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class CreateServiceRequest : TeaModel {
12+
/// <summary>
13+
/// <b>Example:</b>
14+
/// <para>gw-cq7l5s5lhtg***</para>
15+
/// </summary>
16+
[NameInMap("gatewayId")]
17+
[Validation(Required=false)]
18+
public string GatewayId { get; set; }
19+
20+
[NameInMap("resourceGroupId")]
21+
[Validation(Required=false)]
22+
public string ResourceGroupId { get; set; }
23+
24+
[NameInMap("serviceConfigs")]
25+
[Validation(Required=false)]
26+
public List<CreateServiceRequestServiceConfigs> ServiceConfigs { get; set; }
27+
public class CreateServiceRequestServiceConfigs : TeaModel {
28+
[NameInMap("addresses")]
29+
[Validation(Required=false)]
30+
public List<string> Addresses { get; set; }
31+
32+
[NameInMap("aiServiceConfig")]
33+
[Validation(Required=false)]
34+
public AiServiceConfig AiServiceConfig { get; set; }
35+
36+
/// <summary>
37+
/// <b>Example:</b>
38+
/// <para>DEFAULT_GROUP</para>
39+
/// </summary>
40+
[NameInMap("groupName")]
41+
[Validation(Required=false)]
42+
public string GroupName { get; set; }
43+
44+
/// <summary>
45+
/// <b>Example:</b>
46+
/// <para>user-service</para>
47+
/// </summary>
48+
[NameInMap("name")]
49+
[Validation(Required=false)]
50+
public string Name { get; set; }
51+
52+
/// <summary>
53+
/// <b>Example:</b>
54+
/// <para>PUBLIC</para>
55+
/// </summary>
56+
[NameInMap("namespace")]
57+
[Validation(Required=false)]
58+
public string Namespace { get; set; }
59+
60+
/// <summary>
61+
/// <b>Example:</b>
62+
/// <para>LATEST</para>
63+
/// </summary>
64+
[NameInMap("qualifier")]
65+
[Validation(Required=false)]
66+
public string Qualifier { get; set; }
67+
68+
}
69+
70+
/// <summary>
71+
/// <b>Example:</b>
72+
/// <para>MSE_NACOS</para>
73+
/// </summary>
74+
[NameInMap("sourceType")]
75+
[Validation(Required=false)]
76+
public string SourceType { get; set; }
77+
78+
}
79+
80+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class CreateServiceResponse : TeaModel {
12+
[NameInMap("headers")]
13+
[Validation(Required=false)]
14+
public Dictionary<string, string> Headers { get; set; }
15+
16+
[NameInMap("statusCode")]
17+
[Validation(Required=false)]
18+
public int? StatusCode { get; set; }
19+
20+
[NameInMap("body")]
21+
[Validation(Required=false)]
22+
public CreateServiceResponseBody Body { get; set; }
23+
24+
}
25+
26+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class CreateServiceResponseBody : TeaModel {
12+
/// <summary>
13+
/// <b>Example:</b>
14+
/// <para>Ok</para>
15+
/// </summary>
16+
[NameInMap("code")]
17+
[Validation(Required=false)]
18+
public string Code { get; set; }
19+
20+
[NameInMap("data")]
21+
[Validation(Required=false)]
22+
public CreateServiceResponseBodyData Data { get; set; }
23+
public class CreateServiceResponseBodyData : TeaModel {
24+
[NameInMap("serviceIds")]
25+
[Validation(Required=false)]
26+
public List<string> ServiceIds { get; set; }
27+
28+
}
29+
30+
/// <summary>
31+
/// <b>Example:</b>
32+
/// <para>success</para>
33+
/// </summary>
34+
[NameInMap("message")]
35+
[Validation(Required=false)]
36+
public string Message { get; set; }
37+
38+
/// <summary>
39+
/// <b>Example:</b>
40+
/// <para>C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4</para>
41+
/// </summary>
42+
[NameInMap("requestId")]
43+
[Validation(Required=false)]
44+
public string RequestId { get; set; }
45+
46+
}
47+
48+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class GetServiceResponse : TeaModel {
12+
[NameInMap("headers")]
13+
[Validation(Required=false)]
14+
public Dictionary<string, string> Headers { get; set; }
15+
16+
[NameInMap("statusCode")]
17+
[Validation(Required=false)]
18+
public int? StatusCode { get; set; }
19+
20+
[NameInMap("body")]
21+
[Validation(Required=false)]
22+
public GetServiceResponseBody Body { get; set; }
23+
24+
}
25+
26+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class GetServiceResponseBody : TeaModel {
12+
/// <summary>
13+
/// <b>Example:</b>
14+
/// <para>Ok</para>
15+
/// </summary>
16+
[NameInMap("code")]
17+
[Validation(Required=false)]
18+
public string Code { get; set; }
19+
20+
[NameInMap("data")]
21+
[Validation(Required=false)]
22+
public Service Data { get; set; }
23+
24+
/// <summary>
25+
/// <b>Example:</b>
26+
/// <para>success</para>
27+
/// </summary>
28+
[NameInMap("message")]
29+
[Validation(Required=false)]
30+
public string Message { get; set; }
31+
32+
/// <summary>
33+
/// <b>Example:</b>
34+
/// <para>8FA9BB94-915B-5299-A694-49FCC7F5DD00</para>
35+
/// </summary>
36+
[NameInMap("requestId")]
37+
[Validation(Required=false)]
38+
public string RequestId { get; set; }
39+
40+
}
41+
42+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class ListHttpApiRoutesRequest : TeaModel {
12+
[NameInMap("consumerAuthorizationRuleId")]
13+
[Validation(Required=false)]
14+
public string ConsumerAuthorizationRuleId { get; set; }
15+
16+
/// <summary>
17+
/// <b>Example:</b>
18+
/// <para>NotDeployed</para>
19+
/// </summary>
20+
[NameInMap("deployStatuses")]
21+
[Validation(Required=false)]
22+
public string DeployStatuses { get; set; }
23+
24+
[NameInMap("domainId")]
25+
[Validation(Required=false)]
26+
public string DomainId { get; set; }
27+
28+
/// <summary>
29+
/// <b>Example:</b>
30+
/// <para>env-cpqnr6tlhtgubc***</para>
31+
/// </summary>
32+
[NameInMap("environmentId")]
33+
[Validation(Required=false)]
34+
public string EnvironmentId { get; set; }
35+
36+
/// <summary>
37+
/// <b>Example:</b>
38+
/// <para>gw-cpv4sqdl****</para>
39+
/// </summary>
40+
[NameInMap("gatewayId")]
41+
[Validation(Required=false)]
42+
public string GatewayId { get; set; }
43+
44+
/// <summary>
45+
/// <b>Example:</b>
46+
/// <para>itemcenter-gateway</para>
47+
/// </summary>
48+
[NameInMap("name")]
49+
[Validation(Required=false)]
50+
public string Name { get; set; }
51+
52+
/// <summary>
53+
/// <b>Example:</b>
54+
/// <para>item</para>
55+
/// </summary>
56+
[NameInMap("nameLike")]
57+
[Validation(Required=false)]
58+
public string NameLike { get; set; }
59+
60+
/// <summary>
61+
/// <b>Example:</b>
62+
/// <para>1</para>
63+
/// </summary>
64+
[NameInMap("pageNumber")]
65+
[Validation(Required=false)]
66+
public int? PageNumber { get; set; }
67+
68+
/// <summary>
69+
/// <b>Example:</b>
70+
/// <para>10</para>
71+
/// </summary>
72+
[NameInMap("pageSize")]
73+
[Validation(Required=false)]
74+
public int? PageSize { get; set; }
75+
76+
/// <summary>
77+
/// <b>Example:</b>
78+
/// <para>/v1</para>
79+
/// </summary>
80+
[NameInMap("pathLike")]
81+
[Validation(Required=false)]
82+
public string PathLike { get; set; }
83+
84+
[NameInMap("withAuthPolicyInfo")]
85+
[Validation(Required=false)]
86+
public bool? WithAuthPolicyInfo { get; set; }
87+
88+
[NameInMap("withConsumerInfoById")]
89+
[Validation(Required=false)]
90+
public string WithConsumerInfoById { get; set; }
91+
92+
[NameInMap("withPluginAttachmentByPluginId")]
93+
[Validation(Required=false)]
94+
public string WithPluginAttachmentByPluginId { get; set; }
95+
96+
}
97+
98+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.APIG20240327.Models
10+
{
11+
public class ListHttpApiRoutesResponse : TeaModel {
12+
[NameInMap("headers")]
13+
[Validation(Required=false)]
14+
public Dictionary<string, string> Headers { get; set; }
15+
16+
[NameInMap("statusCode")]
17+
[Validation(Required=false)]
18+
public int? StatusCode { get; set; }
19+
20+
[NameInMap("body")]
21+
[Validation(Required=false)]
22+
public ListHttpApiRoutesResponseBody Body { get; set; }
23+
24+
}
25+
26+
}

0 commit comments

Comments
 (0)