Skip to content

Commit

Permalink
release 3.1.99 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Jun 13, 2024
1 parent dc436e3 commit a536273
Show file tree
Hide file tree
Showing 148 changed files with 6,294 additions and 945 deletions.
132 changes: 132 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,135 @@
# 3.1.99 2024-06-13

### HuaweiCloud SDK Core

- _Features_
- Support retry for request.
- _Bug Fix_
- None
- _Change_
- Add non-null check to method SetAk/SetSk of Credentials.

### HuaweiCloud SDK AS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateScalingV2Policy**
- changes of request param
- `+ interval_alarm_actions`
- **ListAllScalingV2Policies**
- changes of response param
- `+ scaling_policies.interval_alarm_actions`
- **UpdateScalingV2Policy**
- changes of request param
- `+ interval_alarm_actions`
- **ShowScalingV2Policy**
- changes of response param
- `+ scaling_policy.interval_alarm_actions`
- **ListScalingV2Policies**
- changes of response param
- `+ scaling_policies.interval_alarm_actions`

### HuaweiCloud SDK DCS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateMigrationTask**
- changes of request param
- `+ target_instance.task_status`
- **ShowMigrationTask**
- changes of response param
- `+ target_instance.task_status`
- **StopMigrationTask**
- changes of response param
- `+ target_instance.task_status`

### HuaweiCloud SDK ECS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ShowServer**
- changes of response param
- `- server.fault.code`
- `- server.fault.created`
- `- server.fault.message`
- `- server.fault.details`
- `* server.fault: object<ServerFault> -> object`
- **ListServersDetails**
- changes of response param
- `- servers.fault.code`
- `- servers.fault.created`
- `- servers.fault.message`
- `- servers.fault.details`
- `* servers.fault: object<ServerFault> -> object`

### HuaweiCloud SDK EIP

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **DisassociatePublicips**
- changes of response param
- `- publicip.associate_instance_type: enum value [null]`
- **AssociatePublicips**
- changes of response param
- `- publicip.associate_instance_type: enum value [null]`
- **UpdatePublicip**
- changes of request param
- `+ publicip.associate_instance_type: enum value [VPN]`
- `- publicip.associate_instance_type: enum value []`
- changes of response param
- `- publicip.associate_instance_type: enum value [null]`

### HuaweiCloud SDK GaussDB

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ShowDedicatedResourceInfo**
- changes of response param
- `+ resource_name`
- `- name`

### HuaweiCloud SDK RDS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ShowReplayDelayStatus**
- changes of response param
- `+ delay_time_value_range`

### HuaweiCloud SDK VPC

- _Features_
- Support the following APIs:
- `ListSecurityGroupsByTags`
- `BatchCreateSecurityGroupTags`
- `BatchDeleteSecurityGroupTags`
- `ShowSecurityGroupTags`
- `CreateSecurityGroupTag`
- `DeleteSecurityGroupTag`
- `ListSecurityGroupTags`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.98 2024-06-06

### HuaweiCloud SDK CCE
Expand Down
132 changes: 132 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,135 @@
# 3.1.99 2024-06-13

### HuaweiCloud SDK Core

- _新增特性_
- 支持请求重试
- _解决问题_
- 无
- _特性变更_
- Credentials的SetAk/SetSk方法添加非空检查

### HuaweiCloud SDK AS

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **CreateScalingV2Policy**
- 请求参数变更
- `+ interval_alarm_actions`
- **ListAllScalingV2Policies**
- 响应参数变更
- `+ scaling_policies.interval_alarm_actions`
- **UpdateScalingV2Policy**
- 请求参数变更
- `+ interval_alarm_actions`
- **ShowScalingV2Policy**
- 响应参数变更
- `+ scaling_policy.interval_alarm_actions`
- **ListScalingV2Policies**
- 响应参数变更
- `+ scaling_policies.interval_alarm_actions`

### HuaweiCloud SDK DCS

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **CreateMigrationTask**
- 请求参数变更
- `+ target_instance.task_status`
- **ShowMigrationTask**
- 响应参数变更
- `+ target_instance.task_status`
- **StopMigrationTask**
- 响应参数变更
- `+ target_instance.task_status`

### HuaweiCloud SDK ECS

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ShowServer**
- 响应参数变更
- `- server.fault.code`
- `- server.fault.created`
- `- server.fault.message`
- `- server.fault.details`
- `* server.fault: object<ServerFault> -> object`
- **ListServersDetails**
- 响应参数变更
- `- servers.fault.code`
- `- servers.fault.created`
- `- servers.fault.message`
- `- servers.fault.details`
- `* servers.fault: object<ServerFault> -> object`

### HuaweiCloud SDK EIP

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **DisassociatePublicips**
- 响应参数变更
- `- publicip.associate_instance_type: enum value [null]`
- **AssociatePublicips**
- 响应参数变更
- `- publicip.associate_instance_type: enum value [null]`
- **UpdatePublicip**
- 请求参数变更
- `+ publicip.associate_instance_type: enum value [VPN]`
- `- publicip.associate_instance_type: enum value []`
- 响应参数变更
- `- publicip.associate_instance_type: enum value [null]`

### HuaweiCloud SDK GaussDB

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ShowDedicatedResourceInfo**
- 响应参数变更
- `+ resource_name`
- `- name`

### HuaweiCloud SDK RDS

- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ShowReplayDelayStatus**
- 响应参数变更
- `+ delay_time_value_range`

### HuaweiCloud SDK VPC

- _新增特性_
- 支持以下接口:
- `ListSecurityGroupsByTags`
- `BatchCreateSecurityGroupTags`
- `BatchDeleteSecurityGroupTags`
- `ShowSecurityGroupTags`
- `CreateSecurityGroupTag`
- `DeleteSecurityGroupTag`
- `ListSecurityGroupTags`
- _解决问题_
- 无
- _特性变更_
- 无

# 3.1.98 2024-06-06

### HuaweiCloud SDK CCE
Expand Down
31 changes: 29 additions & 2 deletions Core/Auth/Credentials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,35 @@ public abstract class Credentials<T> : ICredential where T : Credentials<T>
internal string DerivedAuthServiceName;
internal string RegionId;

public string Ak { set; get; }
public string Sk { set; get; }
private string _ak;
public string Ak
{
get => _ak;
set
{
if (string.IsNullOrEmpty(value))
{
throw new ArgumentException("Input ak cannot be null or empty.");
}
_ak = value;
}
}

private string _sk;

public string Sk
{
get => _sk;
set
{
if (string.IsNullOrEmpty(value))
{
throw new ArgumentException("Input sk cannot be null or empty.");
}
_sk = value;
}
}

public string SecurityToken { set; get; }
public string IamEndpoint { set; get; }
public Func<HttpRequest, bool> DerivedPredicate { set; get; }
Expand Down
Loading

0 comments on commit a536273

Please sign in to comment.