Skip to content

Commit 59a01f5

Browse files
committed
Add DescribeBackupTasks.
1 parent cb06746 commit 59a01f5

File tree

5 files changed

+354
-1
lines changed

5 files changed

+354
-1
lines changed

aliyun-net-sdk-polardb/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-07-24 Version: 1.7.2
2+
- Add DescribeBackupTasks.
3+
14
2020-07-17 Version: 1.7.1
25
- Add DescribeDBClusterAuditLogCollector.
36
- Add DescribeBackupPolicy.
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.polardb.Transform;
26+
using Aliyun.Acs.polardb.Transform.V20170801;
27+
28+
namespace Aliyun.Acs.polardb.Model.V20170801
29+
{
30+
public class DescribeBackupTasksRequest : RpcAcsRequest<DescribeBackupTasksResponse>
31+
{
32+
public DescribeBackupTasksRequest()
33+
: base("polardb", "2017-08-01", "DescribeBackupTasks", "polardb", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private string backupJobId;
44+
45+
private long? resourceOwnerId;
46+
47+
private string resourceOwnerAccount;
48+
49+
private string dBClusterId;
50+
51+
private string ownerAccount;
52+
53+
private long? ownerId;
54+
55+
private string backupMode;
56+
57+
public string BackupJobId
58+
{
59+
get
60+
{
61+
return backupJobId;
62+
}
63+
set
64+
{
65+
backupJobId = value;
66+
DictionaryUtil.Add(QueryParameters, "BackupJobId", value);
67+
}
68+
}
69+
70+
public long? ResourceOwnerId
71+
{
72+
get
73+
{
74+
return resourceOwnerId;
75+
}
76+
set
77+
{
78+
resourceOwnerId = value;
79+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString());
80+
}
81+
}
82+
83+
public string ResourceOwnerAccount
84+
{
85+
get
86+
{
87+
return resourceOwnerAccount;
88+
}
89+
set
90+
{
91+
resourceOwnerAccount = value;
92+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerAccount", value);
93+
}
94+
}
95+
96+
public string DBClusterId
97+
{
98+
get
99+
{
100+
return dBClusterId;
101+
}
102+
set
103+
{
104+
dBClusterId = value;
105+
DictionaryUtil.Add(QueryParameters, "DBClusterId", value);
106+
}
107+
}
108+
109+
public string OwnerAccount
110+
{
111+
get
112+
{
113+
return ownerAccount;
114+
}
115+
set
116+
{
117+
ownerAccount = value;
118+
DictionaryUtil.Add(QueryParameters, "OwnerAccount", value);
119+
}
120+
}
121+
122+
public long? OwnerId
123+
{
124+
get
125+
{
126+
return ownerId;
127+
}
128+
set
129+
{
130+
ownerId = value;
131+
DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
132+
}
133+
}
134+
135+
public string BackupMode
136+
{
137+
get
138+
{
139+
return backupMode;
140+
}
141+
set
142+
{
143+
backupMode = value;
144+
DictionaryUtil.Add(QueryParameters, "BackupMode", value);
145+
}
146+
}
147+
148+
public override DescribeBackupTasksResponse GetResponse(UnmarshallerContext unmarshallerContext)
149+
{
150+
return DescribeBackupTasksResponseUnmarshaller.Unmarshall(unmarshallerContext);
151+
}
152+
}
153+
}
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.polardb.Model.V20170801
24+
{
25+
public class DescribeBackupTasksResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private List<DescribeBackupTasks_BackupJob> items;
31+
32+
public string RequestId
33+
{
34+
get
35+
{
36+
return requestId;
37+
}
38+
set
39+
{
40+
requestId = value;
41+
}
42+
}
43+
44+
public List<DescribeBackupTasks_BackupJob> Items
45+
{
46+
get
47+
{
48+
return items;
49+
}
50+
set
51+
{
52+
items = value;
53+
}
54+
}
55+
56+
public class DescribeBackupTasks_BackupJob
57+
{
58+
59+
private string backupJobId;
60+
61+
private string backupProgressStatus;
62+
63+
private string jobMode;
64+
65+
private string startTime;
66+
67+
private string process;
68+
69+
private string taskAction;
70+
71+
public string BackupJobId
72+
{
73+
get
74+
{
75+
return backupJobId;
76+
}
77+
set
78+
{
79+
backupJobId = value;
80+
}
81+
}
82+
83+
public string BackupProgressStatus
84+
{
85+
get
86+
{
87+
return backupProgressStatus;
88+
}
89+
set
90+
{
91+
backupProgressStatus = value;
92+
}
93+
}
94+
95+
public string JobMode
96+
{
97+
get
98+
{
99+
return jobMode;
100+
}
101+
set
102+
{
103+
jobMode = value;
104+
}
105+
}
106+
107+
public string StartTime
108+
{
109+
get
110+
{
111+
return startTime;
112+
}
113+
set
114+
{
115+
startTime = value;
116+
}
117+
}
118+
119+
public string Process
120+
{
121+
get
122+
{
123+
return process;
124+
}
125+
set
126+
{
127+
process = value;
128+
}
129+
}
130+
131+
public string TaskAction
132+
{
133+
get
134+
{
135+
return taskAction;
136+
}
137+
set
138+
{
139+
taskAction = value;
140+
}
141+
}
142+
}
143+
}
144+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
22+
using Aliyun.Acs.Core.Transform;
23+
using Aliyun.Acs.polardb.Model.V20170801;
24+
25+
namespace Aliyun.Acs.polardb.Transform.V20170801
26+
{
27+
public class DescribeBackupTasksResponseUnmarshaller
28+
{
29+
public static DescribeBackupTasksResponse Unmarshall(UnmarshallerContext context)
30+
{
31+
DescribeBackupTasksResponse describeBackupTasksResponse = new DescribeBackupTasksResponse();
32+
33+
describeBackupTasksResponse.HttpResponse = context.HttpResponse;
34+
describeBackupTasksResponse.RequestId = context.StringValue("DescribeBackupTasks.RequestId");
35+
36+
List<DescribeBackupTasksResponse.DescribeBackupTasks_BackupJob> describeBackupTasksResponse_items = new List<DescribeBackupTasksResponse.DescribeBackupTasks_BackupJob>();
37+
for (int i = 0; i < context.Length("DescribeBackupTasks.Items.Length"); i++) {
38+
DescribeBackupTasksResponse.DescribeBackupTasks_BackupJob backupJob = new DescribeBackupTasksResponse.DescribeBackupTasks_BackupJob();
39+
backupJob.BackupJobId = context.StringValue("DescribeBackupTasks.Items["+ i +"].BackupJobId");
40+
backupJob.BackupProgressStatus = context.StringValue("DescribeBackupTasks.Items["+ i +"].BackupProgressStatus");
41+
backupJob.JobMode = context.StringValue("DescribeBackupTasks.Items["+ i +"].JobMode");
42+
backupJob.StartTime = context.StringValue("DescribeBackupTasks.Items["+ i +"].StartTime");
43+
backupJob.Process = context.StringValue("DescribeBackupTasks.Items["+ i +"].Process");
44+
backupJob.TaskAction = context.StringValue("DescribeBackupTasks.Items["+ i +"].TaskAction");
45+
46+
describeBackupTasksResponse_items.Add(backupJob);
47+
}
48+
describeBackupTasksResponse.Items = describeBackupTasksResponse_items;
49+
50+
return describeBackupTasksResponse;
51+
}
52+
}
53+
}

aliyun-net-sdk-polardb/aliyun-net-sdk-polardb.vs2017.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
55
<RootNamespace>Aliyun.Acs.polardb</RootNamespace>
6-
<Version>1.7.1</Version>
6+
<Version>1.7.2</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)