Skip to content

Commit bd16e2d

Browse files
committed
Add CreateSshKey OpenAPI.
1 parent 8785ab7 commit bd16e2d

File tree

5 files changed

+306
-1
lines changed

5 files changed

+306
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-06-11 Version: 0.1.3
2+
- Add CreateSshKey OpenAPI.
3+
14
2021-06-10 Version: 1.18.0
25
- Support SQLReview Order API.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.codeup;
26+
using Aliyun.Acs.codeup.Transform;
27+
using Aliyun.Acs.codeup.Transform.V20200414;
28+
29+
namespace Aliyun.Acs.codeup.Model.V20200414
30+
{
31+
public class CreateSshKeyRequest : RoaAcsRequest<CreateSshKeyResponse>
32+
{
33+
public CreateSshKeyRequest()
34+
: base("codeup", "2020-04-14", "CreateSshKey")
35+
{
36+
UriPattern = "/api/v3/user/keys";
37+
Method = MethodType.POST;
38+
}
39+
40+
private string accessToken;
41+
42+
public string AccessToken
43+
{
44+
get
45+
{
46+
return accessToken;
47+
}
48+
set
49+
{
50+
accessToken = value;
51+
DictionaryUtil.Add(QueryParameters, "AccessToken", value);
52+
}
53+
}
54+
55+
public override bool CheckShowJsonItemName()
56+
{
57+
return false;
58+
}
59+
60+
public override CreateSshKeyResponse GetResponse(UnmarshallerContext unmarshallerContext)
61+
{
62+
return CreateSshKeyResponseUnmarshaller.Unmarshall(unmarshallerContext);
63+
}
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
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.codeup.Model.V20200414
24+
{
25+
public class CreateSshKeyResponse : AcsResponse
26+
{
27+
28+
private string errorCode;
29+
30+
private string errorMessage;
31+
32+
private string requestId;
33+
34+
private bool? success;
35+
36+
private CreateSshKey_Result result;
37+
38+
public string ErrorCode
39+
{
40+
get
41+
{
42+
return errorCode;
43+
}
44+
set
45+
{
46+
errorCode = value;
47+
}
48+
}
49+
50+
public string ErrorMessage
51+
{
52+
get
53+
{
54+
return errorMessage;
55+
}
56+
set
57+
{
58+
errorMessage = value;
59+
}
60+
}
61+
62+
public string RequestId
63+
{
64+
get
65+
{
66+
return requestId;
67+
}
68+
set
69+
{
70+
requestId = value;
71+
}
72+
}
73+
74+
public bool? Success
75+
{
76+
get
77+
{
78+
return success;
79+
}
80+
set
81+
{
82+
success = value;
83+
}
84+
}
85+
86+
public CreateSshKey_Result Result
87+
{
88+
get
89+
{
90+
return result;
91+
}
92+
set
93+
{
94+
result = value;
95+
}
96+
}
97+
98+
public class CreateSshKey_Result
99+
{
100+
101+
private string createdAt;
102+
103+
private string fingerPrint;
104+
105+
private long? id;
106+
107+
private string key;
108+
109+
private string keyScope;
110+
111+
private string title;
112+
113+
public string CreatedAt
114+
{
115+
get
116+
{
117+
return createdAt;
118+
}
119+
set
120+
{
121+
createdAt = value;
122+
}
123+
}
124+
125+
public string FingerPrint
126+
{
127+
get
128+
{
129+
return fingerPrint;
130+
}
131+
set
132+
{
133+
fingerPrint = value;
134+
}
135+
}
136+
137+
public long? Id
138+
{
139+
get
140+
{
141+
return id;
142+
}
143+
set
144+
{
145+
id = value;
146+
}
147+
}
148+
149+
public string Key
150+
{
151+
get
152+
{
153+
return key;
154+
}
155+
set
156+
{
157+
key = value;
158+
}
159+
}
160+
161+
public string KeyScope
162+
{
163+
get
164+
{
165+
return keyScope;
166+
}
167+
set
168+
{
169+
keyScope = value;
170+
}
171+
}
172+
173+
public string Title
174+
{
175+
get
176+
{
177+
return title;
178+
}
179+
set
180+
{
181+
title = value;
182+
}
183+
}
184+
}
185+
}
186+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.codeup.Model.V20200414;
24+
25+
namespace Aliyun.Acs.codeup.Transform.V20200414
26+
{
27+
public class CreateSshKeyResponseUnmarshaller
28+
{
29+
public static CreateSshKeyResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
CreateSshKeyResponse createSshKeyResponse = new CreateSshKeyResponse();
32+
33+
createSshKeyResponse.HttpResponse = _ctx.HttpResponse;
34+
createSshKeyResponse.ErrorCode = _ctx.StringValue("CreateSshKey.ErrorCode");
35+
createSshKeyResponse.ErrorMessage = _ctx.StringValue("CreateSshKey.ErrorMessage");
36+
createSshKeyResponse.RequestId = _ctx.StringValue("CreateSshKey.RequestId");
37+
createSshKeyResponse.Success = _ctx.BooleanValue("CreateSshKey.Success");
38+
39+
CreateSshKeyResponse.CreateSshKey_Result result = new CreateSshKeyResponse.CreateSshKey_Result();
40+
result.CreatedAt = _ctx.StringValue("CreateSshKey.Result.CreatedAt");
41+
result.FingerPrint = _ctx.StringValue("CreateSshKey.Result.FingerPrint");
42+
result.Id = _ctx.LongValue("CreateSshKey.Result.Id");
43+
result.Key = _ctx.StringValue("CreateSshKey.Result.Key");
44+
result.KeyScope = _ctx.StringValue("CreateSshKey.Result.KeyScope");
45+
result.Title = _ctx.StringValue("CreateSshKey.Result.Title");
46+
createSshKeyResponse.Result = result;
47+
48+
return createSshKeyResponse;
49+
}
50+
}
51+
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
55
<RootNamespace>Aliyun.Acs.codeup</RootNamespace>
6-
<Version>0.1.2</Version>
6+
<Version>0.1.3</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)