Skip to content

Commit 347da32

Browse files
release 3.1.140 source code
1 parent f69aa6e commit 347da32

File tree

178 files changed

+10359
-998
lines changed

Some content is hidden

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

178 files changed

+10359
-998
lines changed

CHANGELOG.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,97 @@
1+
# 3.1.140 2025-04-03
2+
3+
### HuaweiCloud SDK AOM
4+
5+
- _API Version_
6+
- V2
7+
- _Features_
8+
- None
9+
- _Bug Fix_
10+
- None
11+
- _Change_
12+
- **AddOrUpdateMetricOrEventAlarmRule**
13+
- changes of request param
14+
- `* metric_alarm_spec.trigger_conditions.trigger_times: string -> int32`
15+
- **ListMetricOrEventAlarmRule**
16+
- changes of response param
17+
- `* alarm_rules.metric_alarm_spec.trigger_conditions.trigger_times: string -> int32`
18+
19+
### HuaweiCloud SDK CCE
20+
21+
- _API Version_
22+
- V3
23+
- _Features_
24+
- None
25+
- _Bug Fix_
26+
- None
27+
- _Change_
28+
- **UpgradeCluster**
29+
- changes of request param
30+
- `+ spec.clusterUpgradeAction.isOnlyUpgrade`
31+
- **UpgradeAutopilotCluster**
32+
- changes of request param
33+
- `+ spec.clusterUpgradeAction.isOnlyUpgrade`
34+
35+
### HuaweiCloud SDK CES
36+
37+
- _API Version_
38+
- V2
39+
- _Features_
40+
- None
41+
- _Bug Fix_
42+
- None
43+
- _Change_
44+
- **ListAlarmRulePolicies**
45+
- changes of response param
46+
- `+ policies.namespace`
47+
- `+ policies.dimension_name`
48+
- **UpdateAlarmRulePolicies**
49+
- changes of request param
50+
- `+ policies.namespace`
51+
- `+ policies.dimension_name`
52+
- changes of response param
53+
- `+ policies.namespace`
54+
- `+ policies.dimension_name`
55+
- **ListAlarmRules**
56+
- changes of response param
57+
- `+ alarms.product_name`
58+
- `+ alarms.resource_level`
59+
- `+ alarms.policies.namespace`
60+
- `+ alarms.policies.dimension_name`
61+
- **CreateAlarmRules**
62+
- changes of request param
63+
- `+ product_name`
64+
- `+ resource_level`
65+
- `+ policies.namespace`
66+
- `+ policies.dimension_name`
67+
68+
### HuaweiCloud SDK GaussDB
69+
70+
- _API Version_
71+
- V3
72+
- _Features_
73+
- Support the API `UpdateTaurusNodeDataIp`
74+
- _Bug Fix_
75+
- None
76+
- _Change_
77+
- None
78+
79+
### HuaweiCloud SDK VPCEP
80+
81+
- _API Version_
82+
- V1
83+
- _Features_
84+
- None
85+
- _Bug Fix_
86+
- None
87+
- _Change_
88+
- **ListServiceDetails**
89+
- changes of response param
90+
- `+ supported_editions`
91+
- **ListEndpointService**
92+
- changes of response param
93+
- `+ endpoint_services.supported_editions`
94+
195
# 3.1.139 2025-03-27
296

397
### HuaweiCloud SDK Core

CHANGELOG_CN.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,97 @@
1+
# 3.1.140 2025-04-03
2+
3+
### HuaweiCloud SDK AOM
4+
5+
- _接口版本_
6+
- V2
7+
- _新增特性_
8+
- 无
9+
- _解决问题_
10+
- 无
11+
- _特性变更_
12+
- **AddOrUpdateMetricOrEventAlarmRule**
13+
- 请求参数变更
14+
- `* metric_alarm_spec.trigger_conditions.trigger_times: string -> int32`
15+
- **ListMetricOrEventAlarmRule**
16+
- 响应参数变更
17+
- `* alarm_rules.metric_alarm_spec.trigger_conditions.trigger_times: string -> int32`
18+
19+
### HuaweiCloud SDK CCE
20+
21+
- _接口版本_
22+
- V3
23+
- _新增特性_
24+
- 无
25+
- _解决问题_
26+
- 无
27+
- _特性变更_
28+
- **UpgradeCluster**
29+
- 请求参数变更
30+
- `+ spec.clusterUpgradeAction.isOnlyUpgrade`
31+
- **UpgradeAutopilotCluster**
32+
- 请求参数变更
33+
- `+ spec.clusterUpgradeAction.isOnlyUpgrade`
34+
35+
### HuaweiCloud SDK CES
36+
37+
- _接口版本_
38+
- V2
39+
- _新增特性_
40+
- 无
41+
- _解决问题_
42+
- 无
43+
- _特性变更_
44+
- **ListAlarmRulePolicies**
45+
- 响应参数变更
46+
- `+ policies.namespace`
47+
- `+ policies.dimension_name`
48+
- **UpdateAlarmRulePolicies**
49+
- 请求参数变更
50+
- `+ policies.namespace`
51+
- `+ policies.dimension_name`
52+
- 响应参数变更
53+
- `+ policies.namespace`
54+
- `+ policies.dimension_name`
55+
- **ListAlarmRules**
56+
- 响应参数变更
57+
- `+ alarms.product_name`
58+
- `+ alarms.resource_level`
59+
- `+ alarms.policies.namespace`
60+
- `+ alarms.policies.dimension_name`
61+
- **CreateAlarmRules**
62+
- 请求参数变更
63+
- `+ product_name`
64+
- `+ resource_level`
65+
- `+ policies.namespace`
66+
- `+ policies.dimension_name`
67+
68+
### HuaweiCloud SDK GaussDB
69+
70+
- _接口版本_
71+
- V3
72+
- _新增特性_
73+
- 支持接口`UpdateTaurusNodeDataIp`
74+
- _解决问题_
75+
- 无
76+
- _特性变更_
77+
- 无
78+
79+
### HuaweiCloud SDK VPCEP
80+
81+
- _接口版本_
82+
- V1
83+
- _新增特性_
84+
- 无
85+
- _解决问题_
86+
- 无
87+
- _特性变更_
88+
- **ListServiceDetails**
89+
- 响应参数变更
90+
- `+ supported_editions`
91+
- **ListEndpointService**
92+
- 响应参数变更
93+
- `+ endpoint_services.supported_editions`
94+
195
# 3.1.139 2025-03-27
296

397
### HuaweiCloud SDK Core

Core/Auth/IamService.cs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal class Project
4141
internal class IamResponse : SdkResponse
4242
{
4343
[SDKProperty(propertyName: "X-IAM-Trace-Id", IsHeader = true)]
44-
public string TraceId { get; set;}
44+
public string TraceId { get; set; }
4545
}
4646

4747
internal class KeystoneListProjectsResponse : IamResponse
@@ -80,7 +80,7 @@ 2. Use the domain account to grant IAM read permission to the current account
8080
1. Manually specify domainId when initializing the credentials, var credentials = new GlobalCredentials(ak, sk, domainId);
8181
2. Use the domain account to grant IAM read permission to the current account
8282
3. Replace the ak/sk of the IAM account with the ak/sk of the domain account";
83-
83+
8484
private const string EndpointsResourceName = "Core.Resources.iam_endpoints.json";
8585

8686
private const string IamEndpointEnv = "HUAWEICLOUD_SDK_IAM_ENDPOINT";
@@ -101,11 +101,15 @@ private static Dictionary<string, string> ProcessEndpoints()
101101
using (var reader = new StreamReader(stream))
102102
{
103103
var content = reader.ReadToEnd();
104+
if (string.IsNullOrEmpty(content))
105+
{
106+
return new Dictionary<string, string>();
107+
}
104108
try
105109
{
106110
return JsonConvert.DeserializeObject<Dictionary<string, string>>(content);
107111
}
108-
catch (JsonException)
112+
catch (Exception)
109113
{
110114
return new Dictionary<string, string>();
111115
}
@@ -128,7 +132,7 @@ private static Dictionary<string, string> GetEndpoints()
128132
return _endpoints;
129133
}
130134

131-
public static string GetEndpoint(string regionId=null)
135+
public static string GetEndpoint(string regionId = null)
132136
{
133137
var endpointFromEnv = Environment.GetEnvironmentVariable(IamEndpointEnv);
134138
if (endpointFromEnv != null)
@@ -144,8 +148,8 @@ public static string GetEndpoint(string regionId=null)
144148
{
145149
return DefaultIamEndpoint;
146150
}
147-
148-
151+
152+
149153
return GetEndpoints().TryGetValue(regionId, out var endpoint) ? endpoint : DefaultIamEndpoint;
150154
}
151155

@@ -171,7 +175,7 @@ public static HttpRequest GetKeystoneListProjectsRequest(string iamEndpoint, str
171175

172176
return request;
173177
}
174-
178+
175179
[Obsolete("This method is for internal use only and is deprecated. It will be removed in a future release.")]
176180
public static string KeystoneListProjects(SdkHttpClient client, HttpRequest request)
177181
{
@@ -202,7 +206,7 @@ public static string KeystoneListProjects(SdkHttpClient client, HttpRequest requ
202206
throw ExceptionUtils.HandleException(aggregateException);
203207
}
204208
}
205-
209+
206210
internal static KeystoneListProjectsResponse InternalKeystoneListProjects(SdkHttpClient client, HttpRequest request)
207211
{
208212
var message = client.InitHttpRequest(request, true);
@@ -243,7 +247,7 @@ public static HttpRequest GetKeystoneListAuthDomainsRequest(string iamEndpoint,
243247

244248
return request;
245249
}
246-
250+
247251
[Obsolete("This method is for internal use only and is deprecated. It will be removed in a future release.")]
248252
public static string KeystoneListAuthDomains(SdkHttpClient client, HttpRequest request)
249253
{
@@ -269,7 +273,7 @@ public static string KeystoneListAuthDomains(SdkHttpClient client, HttpRequest r
269273
throw ExceptionUtils.HandleException(aggregateException);
270274
}
271275
}
272-
276+
273277
internal static KeystoneListAuthDomainsResponse InternalKeystoneListAuthDomains(SdkHttpClient client, HttpRequest request)
274278
{
275279
var message = client.InitHttpRequest(request, true);

Core/Core.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
<Company>Huawei Technologies Co., Ltd.</Company>
1818
<Description>HuaweiCloud .net SDK</Description>
1919
<PackageLicenseFile>LICENSE</PackageLicenseFile>
20+
<PackageReadmeFile>README.md</PackageReadmeFile>
2021
</PropertyGroup>
2122

2223
<ItemGroup>
2324
<None Include="..\LICENSE" Pack="true" PackagePath="" />
25+
<None Include="..\README.md" Pack="true" PackagePath="" />
2426
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />
2527
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
2628
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.5" />

0 commit comments

Comments
 (0)