Skip to content

Commit

Permalink
release 3.0.11-beta source code for net
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Sep 9, 2020
1 parent 701cf91 commit a335e64
Show file tree
Hide file tree
Showing 304 changed files with 35,597 additions and 220 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## 3.0.11-beta 2020-09-09
## HuaweiCloud SDK Core
- ### Features
- None
- ### Bug Fix
- Delete redundant Sidecar code in the repository.
- ### Change
- None

## HuaweiCloud SDK DMS
- ### Features
- Support Distributed Message Services, provide Kafka premium instances and RabbitMQ premium instances with dedicated resources.
- ### Bug Fix
- None
- ### Change
- None

## HuaweiCloud SDK VPC
- ### Features
- None
- ### Bug Fix
- Fix the problem that security group related interfaces have wrong data type.
- ### Change
- None


## 3.0.10-beta 2020-09-04
## HuaweiCloud SDK Core
- ### Features
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# 3.0.11-beta 2020-09-09
## HuaweiCloud SDK Core
- ### 新增特性
-
- ### 解决问题
- 删除代码仓中的冗余Sidecar代码
- ### 特性变更
-

## HuaweiCloud SDK DMS
- ### 新增特性
- 支持分布式消息服务,提供Kafka专享版和RabbitMQ专享版
- ### 解决问题
-
- ### 特性变更
-

## HuaweiCloud SDK VPC
- ### 新增特性
-
- ### 解决问题
- 修复安全组相关接口类型错误的问题
- ### 特性变更
-


# 3.0.10-beta 2020-09-04
## HuaweiCloud SDK Core
- ### 新增特性
Expand Down
2 changes: 1 addition & 1 deletion Core/obj/Core.csproj.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"dgSpecHash": "BI/WayeYc4X+hcAXtNz5hJGzp8qW8s1edxDEcioStmcg3359OM+gFIWHqsxtOLlikoqGzpLQVPcYih1jfr4f9g==",
"dgSpecHash": "z7RJzV4Vv6G6+/PXfWMLYDkzO0NZuQpvremnOJZg9a1Pzpr45eGJYrgDaze4DdQa0JjIsVypLRDUIzYDtLTzWQ==",
"success": true
}
12 changes: 6 additions & 6 deletions Core/obj/Core.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"format": 1,
"restore": {
"/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj": {}
"/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj": {}
},
"projects": {
"/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj": {
"/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj",
"projectUniqueName": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj",
"projectName": "HuaweiCloud.SDK.Core",
"projectPath": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj",
"projectPath": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj",
"packagesPath": "/root/.nuget/packages/",
"outputPath": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/obj/",
"outputPath": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/dotnet/sdk/NuGetFallbackFolder"
Expand All @@ -23,7 +23,7 @@
"netstandard2.0"
],
"sources": {
"/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/package": {}
"/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/package": {}
},
"frameworks": {
"netstandard2.0": {
Expand Down
2 changes: 1 addition & 1 deletion Core/obj/Core.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/obj/project.assets.json</ProjectAssetsFile>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/obj/project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/root/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/root/.nuget/packages/;/usr/dotnet/sdk/NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
Expand Down
8 changes: 4 additions & 4 deletions Core/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3593,11 +3593,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj",
"projectUniqueName": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj",
"projectName": "HuaweiCloud.SDK.Core",
"projectPath": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/Core.csproj",
"projectPath": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/Core.csproj",
"packagesPath": "/root/.nuget/packages/",
"outputPath": "/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/Core/obj/",
"outputPath": "/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/Core/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/dotnet/sdk/NuGetFallbackFolder"
Expand All @@ -3609,7 +3609,7 @@
"netstandard2.0"
],
"sources": {
"/data/fuxi_ci_workspace/5f5209a7f796dd245cc822ce/package": {}
"/data/fuxi_ci_workspace/5f5894cfe5e4844a532d3187/package": {}
},
"frameworks": {
"netstandard2.0": {
Expand Down
96 changes: 96 additions & 0 deletions Examples/Dms/V2/ConsumeGroup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
using System;
using System.Collections.Generic;
using HuaweiCloud.SDK.Core;
using HuaweiCloud.SDK.Core.Auth;
using HuaweiCloud.SDK.Dms.V2;
using HuaweiCloud.SDK.Dms.V2.Model;

namespace Examples.Dms.V2
{
public class ConsumeGroup
{
private const string ak = "{your ak string}";
private const string sk = "{your sk string}";
private const string endpoint = "{your endpoint}";
private const string projectId = "{your project id}";
private const string queueId = "{your queue id}";

private static void ConsumeGroupMain(string[] args)
{
var config = HttpConfig.GetDefaultConfig();
config.IgnoreSslVerification = true;
var auth = new BasicCredentials(ak, sk, projectId);
var dmsClient = DmsClient.NewBuilder()
.WithCredential(auth)
.WithEndPoint(endpoint)
.WithHttpConfig(config).Build();

// CreateConsumerGroup(dmsClient);
listConsumerGroups(dmsClient);
}

private static void CreateConsumerGroup(DmsClient client)
{
var groupEntity = new GroupEntity
{
Name = "gourp-test",
};
var req = new CreateConsumerGroupRequest()
{
QueueId = queueId,
Body = new CreateConsumerGroupReq
{
Groups = new List<GroupEntity>() {groupEntity}
}
};

try
{
var resp = client.CreateConsumerGroup(req);
Console.WriteLine(resp.GetHttpBody());
}
catch (RequestTimeoutException requestTimeoutException)
{
Console.WriteLine(requestTimeoutException.ErrorMessage);
}
catch (ServiceResponseException clientRequestException)
{
Console.WriteLine(clientRequestException.HttpStatusCode);
Console.WriteLine(clientRequestException.ErrorCode);
Console.WriteLine(clientRequestException.ErrorMsg);
}
catch (ConnectionException connectionException)
{
Console.WriteLine(connectionException.ErrorMessage);
}
}

private static void listConsumerGroups(DmsClient client)
{
var req = new ListConsumerGroupsRequest
{
QueueId = queueId,
};

try
{
var resp = client.ListConsumerGroups(req);
Console.WriteLine(resp.GetHttpBody());
}
catch (RequestTimeoutException requestTimeoutException)
{
Console.WriteLine(requestTimeoutException.ErrorMessage);
}
catch (ServiceResponseException clientRequestException)
{
Console.WriteLine(clientRequestException.HttpStatusCode);
Console.WriteLine(clientRequestException.ErrorCode);
Console.WriteLine(clientRequestException.ErrorMsg);
}
catch (ConnectionException connectionException)
{
Console.WriteLine(connectionException.ErrorMessage);
}
}
}
}
116 changes: 116 additions & 0 deletions Examples/Dms/V2/QueueMgt.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
using System;
using HuaweiCloud.SDK.Core;
using HuaweiCloud.SDK.Core.Auth;
using HuaweiCloud.SDK.Dms.V2;
using HuaweiCloud.SDK.Dms.V2.Model;

namespace Examples.Dms.V2
{
public class QueueMgt
{
private const string ak = "{your ak string}";
private const string sk = "{your sk string}";
private const string endpoint = "{your endpoint}";
private const string projectId = "{your project id}";
private const string queueId = "{your queue id}";

private static void QueueMgtMain(string[] args)
{
var config = HttpConfig.GetDefaultConfig();
config.IgnoreSslVerification = true;
var auth = new BasicCredentials(ak, sk, projectId);
var dmsClient = DmsClient.NewBuilder()
.WithCredential(auth)
.WithEndPoint(endpoint)
.WithHttpConfig(config).Build();

// listQueues(dmsClient);
CreateQueue(dmsClient);
//deleteQueue(dmsClient);
}

private static void listQueues(DmsClient client)
{
var req = new ListQueuesRequest();

try
{
var resp = client.ListQueues(req);
Console.WriteLine(resp.GetHttpBody());
}
catch (RequestTimeoutException requestTimeoutException)
{
Console.WriteLine(requestTimeoutException.ErrorMessage);
}
catch (ServiceResponseException clientRequestException)
{
Console.WriteLine(clientRequestException.HttpStatusCode);
Console.WriteLine(clientRequestException.ErrorCode);
Console.WriteLine(clientRequestException.ErrorMsg);
}
catch (ConnectionException connectionException)
{
Console.WriteLine(connectionException.ErrorMessage);
}
}

private static void CreateQueue(DmsClient client)
{
var req = new CreateQueueRequest
{
Body = new CreateQueueReq
{
Name = "queue-test",
}
};

try
{
var resp = client.CreateQueue(req);
Console.WriteLine(resp.GetHttpBody());
}
catch (RequestTimeoutException requestTimeoutException)
{
Console.WriteLine(requestTimeoutException.ErrorMessage);
}
catch (ServiceResponseException clientRequestException)
{
Console.WriteLine(clientRequestException.HttpStatusCode);
Console.WriteLine(clientRequestException.ErrorCode);
Console.WriteLine(clientRequestException.ErrorMsg);
}
catch (ConnectionException connectionException)
{
Console.WriteLine(connectionException.ErrorMessage);
}
}

private static void deleteQueue(DmsClient client)
{
var req = new DeleteQueueRequest()
{
QueueId = queueId,
};

try
{
var resp = client.DeleteQueue(req);
Console.WriteLine(resp.GetHttpBody());
}
catch (RequestTimeoutException requestTimeoutException)
{
Console.WriteLine(requestTimeoutException.ErrorMessage);
}
catch (ServiceResponseException clientRequestException)
{
Console.WriteLine(clientRequestException.HttpStatusCode);
Console.WriteLine(clientRequestException.ErrorCode);
Console.WriteLine(clientRequestException.ErrorMsg);
}
catch (ConnectionException connectionException)
{
Console.WriteLine(connectionException.ErrorMessage);
}
}
}
}
3 changes: 3 additions & 0 deletions Examples/Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<ProjectReference Include="..\Services\Classroom\Classroom.csproj" />
<ProjectReference Include="..\Services\Dcs\Dcs.csproj" />
<ProjectReference Include="..\Services\Kms\Kms.csproj" />
<ProjectReference Include="..\Services\Dms\Dms.csproj" />
<ProjectReference Include="..\Services\Kafka\Kafka.csproj" />
<ProjectReference Include="..\Services\Rabbitmq\Rabbitmq.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit a335e64

Please sign in to comment.