Skip to content

Commit befd598

Browse files
release 3.1.161 source code
1 parent 37029d9 commit befd598

File tree

194 files changed

+11770
-1424
lines changed

Some content is hidden

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

194 files changed

+11770
-1424
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# 3.1.161 2025-08-25
2+
3+
### HuaweiCloud SDK RDS
4+
5+
- _API Version_
6+
- V3
7+
- _Features_
8+
- None
9+
- _Bug Fix_
10+
- None
11+
- _Change_
12+
- **ListDbUsers**
13+
- changes of response param
14+
- `+ users.comment`
15+
- **ListSqlserverDbUsers**
16+
- changes of response param
17+
- `+ users.comment`
18+
119
# 3.1.160 2025-08-21
220

321
### HuaweiCloud SDK CDN

CHANGELOG_CN.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# 3.1.161 2025-08-25
2+
3+
### HuaweiCloud SDK RDS
4+
5+
- _接口版本_
6+
- V3
7+
- _新增特性_
8+
- 无
9+
- _解决问题_
10+
- 无
11+
- _特性变更_
12+
- **ListDbUsers**
13+
- 响应参数变更
14+
- `+ users.comment`
15+
- **ListSqlserverDbUsers**
16+
- 响应参数变更
17+
- `+ users.comment`
18+
119
# 3.1.160 2025-08-21
220

321
### HuaweiCloud SDK CDN

Core/Auth/IamService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static HttpRequest GetKeystoneListProjectsRequest(string iamEndpoint, str
163163

164164
var request = new HttpRequest("GET", sdkRequest.ContentType, new Uri(url))
165165
{
166-
Body = "",
166+
Body = string.Empty,
167167
Headers = new WebHeaderCollection
168168
{
169169
{
@@ -235,7 +235,7 @@ public static HttpRequest GetKeystoneListAuthDomainsRequest(string iamEndpoint,
235235
var url = iamEndpoint + urlPath;
236236
var request = new HttpRequest("GET", sdkRequest.ContentType, new Uri(url))
237237
{
238-
Body = "",
238+
Body = string.Empty,
239239
Headers = new WebHeaderCollection
240240
{
241241
{

Core/Auth/ProfileCredentialProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public ICredential GetCredentials()
101101
private static Dictionary<string, string> ProcessCredentialsDict(List<string> lines)
102102
{
103103
var dict = new Dictionary<string, string>();
104-
var section = "";
104+
var section = string.Empty;
105105
foreach (var line in lines)
106106
{
107107
if (line.Contains('='))

Core/Client.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public async Task<HttpResponseMessage> DoHttpRequestAsync(string methodType, Sdk
101101
while (true)
102102
{
103103
var url = GetRealEndpoint(request) + HttpUtils.AddUrlPath(request.Path, _credentials.GetPathParamDictionary())
104-
+ (string.IsNullOrEmpty(request.QueryParams) ? "" : "?" + request.QueryParams);
104+
+ (string.IsNullOrEmpty(request.QueryParams) ? string.Empty : "?" + request.QueryParams);
105105
try
106106
{
107107
return await _async_http(url, methodType.ToUpperInvariant(), request);
@@ -192,7 +192,7 @@ public HttpResponseMessage DoHttpRequestSync(string methodType, SdkRequest reque
192192
while (true)
193193
{
194194
var url = GetRealEndpoint(request) + HttpUtils.AddUrlPath(request.Path, _credentials.GetPathParamDictionary())
195-
+ (string.IsNullOrEmpty(request.QueryParams) ? "" : "?" + request.QueryParams);
195+
+ (string.IsNullOrEmpty(request.QueryParams) ? string.Empty : "?" + request.QueryParams);
196196
try
197197
{
198198
return _sync_http(url, methodType.ToUpperInvariant(), request);
@@ -231,7 +231,7 @@ private HttpRequest GetHttpRequest(string url, string method, SdkRequest sdkRequ
231231
{
232232
var request = new HttpRequest(method.ToUpperInvariant(), sdkRequest.ContentType, new Uri(url))
233233
{
234-
Body = sdkRequest.Body ?? "",
234+
Body = sdkRequest.Body ?? string.Empty,
235235
FileStream = sdkRequest.FileStream,
236236
FormData = sdkRequest.FormData,
237237
SigningAlgorithm = _httpConfig.SigningAlgorithm

Core/Http/HttpRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ namespace HuaweiCloud.SDK.Core
2828
{
2929
public class HttpRequest
3030
{
31-
public string Body = "";
31+
public string Body = string.Empty;
3232
public string ContentType = "application/json";
3333
public Stream FileStream = Stream.Null;
3434
public Dictionary<string, object> FormData;
3535
public WebHeaderCollection Headers = new WebHeaderCollection();
36-
public string Host = "";
36+
public string Host = string.Empty;
3737
public string Method = "GET";
3838
public Dictionary<string, List<string>> QueryParam = new Dictionary<string, List<string>>();
3939
public Uri Url;
@@ -65,7 +65,7 @@ public HttpRequest(string method = "GET", string contentType = "application/json
6565
Body = body;
6666
if (Method != "POST" && Method != "PATCH" && Method != "PUT")
6767
{
68-
Body = "";
68+
Body = string.Empty;
6969
}
7070
}
7171

@@ -93,7 +93,7 @@ private void ParseQueryParam()
9393
'='
9494
}, 2);
9595
var key = WebUtility.UrlDecode(spl[0]);
96-
var value = "";
96+
var value = string.Empty;
9797
if (spl.Length > 1)
9898
{
9999
value = WebUtility.UrlDecode(spl[1]);

Core/Progress/SimleTransfer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace HuaweiCloud.SDK.Core
2727
{
28-
internal class TransferStream : Stream
28+
public class TransferStream : Stream
2929
{
3030
private long _readBytes;
3131

@@ -131,14 +131,14 @@ public override void Close()
131131
internal delegate void EventDelegate();
132132
}
133133

134-
internal class BytesUnit
134+
public class BytesUnit
135135
{
136136
public DateTime DateTime { get; set; }
137137

138138
public long Bytes { set; get; }
139139
}
140140

141-
internal abstract class TransferStreamManager
141+
public abstract class TransferStreamManager
142142
{
143143
protected readonly EventHandler<TransferStatus> Handler;
144144
protected readonly object Sender;

Core/Progress/ThreadSafeTransfer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace HuaweiCloud.SDK.Core
2626
{
27-
internal class ThreadSafeTransferStreamByBytes : TransferStreamManager
27+
public class ThreadSafeTransferStreamByBytes : TransferStreamManager
2828
{
2929

3030
protected readonly object Lock = new object();

Core/Utils/ExceptionUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static ServiceResponseException GetException(HttpResponseMessage response
9999
HttpBody = Encoding.UTF8.GetString(responseMessage.Content.ReadAsByteArrayAsync().Result)
100100
};
101101

102-
var requestId = "";
102+
var requestId = string.Empty;
103103
if (responseMessage.Headers.Contains(XRequestId))
104104
{
105105
requestId = responseMessage.Headers.GetValues(XRequestId).FirstOrDefault();

0 commit comments

Comments
 (0)