Skip to content

Commit 34a0af8

Browse files
committed
Add new apis.
1 parent 0819915 commit 34a0af8

File tree

134 files changed

+11186
-0
lines changed

Some content is hidden

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

134 files changed

+11186
-0
lines changed

CHANGELOG

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2023-03-02 Version: 1.0.0
2+
- Add new apis.
3+
- DescribeDatabaseInstances.
4+
- StartDatabaseInstance.
5+
- StopDatabaseInstance.
6+
- RetartDatabaseInstance.
7+
- ResetDatabaseAccountPassword.
8+
- AllocatePublicConnection.
9+
- ReleasePublicConnection.
10+
- DescribeDatabaseInstanceMetricData.
11+
- DescribeDatabaseSlowLogRecords.
12+
- DescribeDatabaseErrorLogs.
13+
- DescribeDatabaseInstanceParameters.
14+
- ModifyDatabaseInstanceParameter.
15+
116
2023-03-01 Version: 1.1.2
217
- Change param invisible.
318

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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.SWAS_OPEN.Transform;
26+
using Aliyun.Acs.SWAS_OPEN.Transform.V20200601;
27+
28+
namespace Aliyun.Acs.SWAS_OPEN.Model.V20200601
29+
{
30+
public class AllocatePublicConnectionRequest : RpcAcsRequest<AllocatePublicConnectionResponse>
31+
{
32+
public AllocatePublicConnectionRequest()
33+
: base("SWAS-OPEN", "2020-06-01", "AllocatePublicConnection", "SWAS-OPEN", "openAPI")
34+
{
35+
Method = MethodType.POST;
36+
}
37+
38+
private string clientToken;
39+
40+
private string databaseInstanceId;
41+
42+
public string ClientToken
43+
{
44+
get
45+
{
46+
return clientToken;
47+
}
48+
set
49+
{
50+
clientToken = value;
51+
DictionaryUtil.Add(QueryParameters, "ClientToken", value);
52+
}
53+
}
54+
55+
public string DatabaseInstanceId
56+
{
57+
get
58+
{
59+
return databaseInstanceId;
60+
}
61+
set
62+
{
63+
databaseInstanceId = value;
64+
DictionaryUtil.Add(QueryParameters, "DatabaseInstanceId", value);
65+
}
66+
}
67+
68+
public override bool CheckShowJsonItemName()
69+
{
70+
return false;
71+
}
72+
73+
public override AllocatePublicConnectionResponse GetResponse(UnmarshallerContext unmarshallerContext)
74+
{
75+
return AllocatePublicConnectionResponseUnmarshaller.Unmarshall(unmarshallerContext);
76+
}
77+
}
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.SWAS_OPEN.Model.V20200601
24+
{
25+
public class AllocatePublicConnectionResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string publicConnection;
31+
32+
public string RequestId
33+
{
34+
get
35+
{
36+
return requestId;
37+
}
38+
set
39+
{
40+
requestId = value;
41+
}
42+
}
43+
44+
public string PublicConnection
45+
{
46+
get
47+
{
48+
return publicConnection;
49+
}
50+
set
51+
{
52+
publicConnection = value;
53+
}
54+
}
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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.SWAS_OPEN.Transform;
26+
using Aliyun.Acs.SWAS_OPEN.Transform.V20200601;
27+
28+
namespace Aliyun.Acs.SWAS_OPEN.Model.V20200601
29+
{
30+
public class CreateCustomImageRequest : RpcAcsRequest<CreateCustomImageResponse>
31+
{
32+
public CreateCustomImageRequest()
33+
: base("SWAS-OPEN", "2020-06-01", "CreateCustomImage", "SWAS-OPEN", "openAPI")
34+
{
35+
Method = MethodType.POST;
36+
}
37+
38+
private string systemSnapshotId;
39+
40+
private string dataSnapshotId;
41+
42+
private string clientToken;
43+
44+
private string description;
45+
46+
private string instanceId;
47+
48+
private string imageName;
49+
50+
public string SystemSnapshotId
51+
{
52+
get
53+
{
54+
return systemSnapshotId;
55+
}
56+
set
57+
{
58+
systemSnapshotId = value;
59+
DictionaryUtil.Add(QueryParameters, "SystemSnapshotId", value);
60+
}
61+
}
62+
63+
public string DataSnapshotId
64+
{
65+
get
66+
{
67+
return dataSnapshotId;
68+
}
69+
set
70+
{
71+
dataSnapshotId = value;
72+
DictionaryUtil.Add(QueryParameters, "DataSnapshotId", value);
73+
}
74+
}
75+
76+
public string ClientToken
77+
{
78+
get
79+
{
80+
return clientToken;
81+
}
82+
set
83+
{
84+
clientToken = value;
85+
DictionaryUtil.Add(QueryParameters, "ClientToken", value);
86+
}
87+
}
88+
89+
public string Description
90+
{
91+
get
92+
{
93+
return description;
94+
}
95+
set
96+
{
97+
description = value;
98+
DictionaryUtil.Add(QueryParameters, "Description", value);
99+
}
100+
}
101+
102+
public string InstanceId
103+
{
104+
get
105+
{
106+
return instanceId;
107+
}
108+
set
109+
{
110+
instanceId = value;
111+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
112+
}
113+
}
114+
115+
public string ImageName
116+
{
117+
get
118+
{
119+
return imageName;
120+
}
121+
set
122+
{
123+
imageName = value;
124+
DictionaryUtil.Add(QueryParameters, "ImageName", value);
125+
}
126+
}
127+
128+
public override bool CheckShowJsonItemName()
129+
{
130+
return false;
131+
}
132+
133+
public override CreateCustomImageResponse GetResponse(UnmarshallerContext unmarshallerContext)
134+
{
135+
return CreateCustomImageResponseUnmarshaller.Unmarshall(unmarshallerContext);
136+
}
137+
}
138+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.SWAS_OPEN.Model.V20200601
24+
{
25+
public class CreateCustomImageResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string imageId;
31+
32+
public string RequestId
33+
{
34+
get
35+
{
36+
return requestId;
37+
}
38+
set
39+
{
40+
requestId = value;
41+
}
42+
}
43+
44+
public string ImageId
45+
{
46+
get
47+
{
48+
return imageId;
49+
}
50+
set
51+
{
52+
imageId = value;
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)