Skip to content

Commit 53085db

Browse files
committed
Support create default VPC and create default vSwitch .
1 parent 7bd82a3 commit 53085db

File tree

63 files changed

+2331
-23
lines changed

Some content is hidden

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

63 files changed

+2331
-23
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-10 Version: 3.0.14
2+
- Support create default VPC and create default vSwitch .
3+
14
2023-03-09 Version: 1.0.8
25
- Support DryRunCLuster.
36
- Support DescribeAvailableResource DescribeComputeResource DescribeEIURange For LakeVersion.

aliyun-net-sdk-vpc/Vpc/Model/V20160428/CreateCustomerGatewayRequest.cs

+55
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public CreateCustomerGatewayRequest()
5656

5757
private long? ownerId;
5858

59+
private List<string> tagss = new List<string>(){ };
60+
5961
private string name;
6062

6163
private string asn;
@@ -164,6 +166,27 @@ public long? OwnerId
164166
}
165167
}
166168

169+
public List<string> Tagss
170+
{
171+
get
172+
{
173+
return tagss;
174+
}
175+
176+
set
177+
{
178+
tagss = value;
179+
if(tagss != null)
180+
{
181+
for (int depth1 = 0; depth1 < tagss.Count; depth1++)
182+
{
183+
DictionaryUtil.Add(QueryParameters,"Tags." + (depth1 + 1), tagss[depth1]);
184+
DictionaryUtil.Add(QueryParameters,"Tags." + (depth1 + 1), tagss[depth1]);
185+
}
186+
}
187+
}
188+
}
189+
167190
public string Name
168191
{
169192
get
@@ -188,6 +211,38 @@ public string Asn
188211
asn = value;
189212
DictionaryUtil.Add(QueryParameters, "Asn", value);
190213
}
214+
}
215+
216+
public class Tags
217+
{
218+
219+
private string value_;
220+
221+
private string key;
222+
223+
public string Value_
224+
{
225+
get
226+
{
227+
return value_;
228+
}
229+
set
230+
{
231+
value_ = value;
232+
}
233+
}
234+
235+
public string Key
236+
{
237+
get
238+
{
239+
return key;
240+
}
241+
set
242+
{
243+
key = value;
244+
}
245+
}
191246
}
192247

193248
public override CreateCustomerGatewayResponse GetResponse(UnmarshallerContext unmarshallerContext)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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.Vpc.Transform;
26+
using Aliyun.Acs.Vpc.Transform.V20160428;
27+
28+
namespace Aliyun.Acs.Vpc.Model.V20160428
29+
{
30+
public class CreateDefaultVSwitchRequest : RpcAcsRequest<CreateDefaultVSwitchResponse>
31+
{
32+
public CreateDefaultVSwitchRequest()
33+
: base("Vpc", "2016-04-28", "CreateDefaultVSwitch", "vpc", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Vpc.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Vpc.Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private long? resourceOwnerId;
44+
45+
private string clientToken;
46+
47+
private string resourceOwnerAccount;
48+
49+
private string ownerAccount;
50+
51+
private long? ownerId;
52+
53+
private int? ipv6CidrBlock;
54+
55+
private string zoneId;
56+
57+
public long? ResourceOwnerId
58+
{
59+
get
60+
{
61+
return resourceOwnerId;
62+
}
63+
set
64+
{
65+
resourceOwnerId = value;
66+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString());
67+
}
68+
}
69+
70+
public string ClientToken
71+
{
72+
get
73+
{
74+
return clientToken;
75+
}
76+
set
77+
{
78+
clientToken = value;
79+
DictionaryUtil.Add(QueryParameters, "ClientToken", value);
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 OwnerAccount
97+
{
98+
get
99+
{
100+
return ownerAccount;
101+
}
102+
set
103+
{
104+
ownerAccount = value;
105+
DictionaryUtil.Add(QueryParameters, "OwnerAccount", value);
106+
}
107+
}
108+
109+
public long? OwnerId
110+
{
111+
get
112+
{
113+
return ownerId;
114+
}
115+
set
116+
{
117+
ownerId = value;
118+
DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
119+
}
120+
}
121+
122+
public int? Ipv6CidrBlock
123+
{
124+
get
125+
{
126+
return ipv6CidrBlock;
127+
}
128+
set
129+
{
130+
ipv6CidrBlock = value;
131+
DictionaryUtil.Add(QueryParameters, "Ipv6CidrBlock", value.ToString());
132+
}
133+
}
134+
135+
public string ZoneId
136+
{
137+
get
138+
{
139+
return zoneId;
140+
}
141+
set
142+
{
143+
zoneId = value;
144+
DictionaryUtil.Add(QueryParameters, "ZoneId", value);
145+
}
146+
}
147+
148+
public override bool CheckShowJsonItemName()
149+
{
150+
return false;
151+
}
152+
153+
public override CreateDefaultVSwitchResponse GetResponse(UnmarshallerContext unmarshallerContext)
154+
{
155+
return CreateDefaultVSwitchResponseUnmarshaller.Unmarshall(unmarshallerContext);
156+
}
157+
}
158+
}
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.Vpc.Model.V20160428
24+
{
25+
public class CreateDefaultVSwitchResponse : AcsResponse
26+
{
27+
28+
private string vSwitchId;
29+
30+
private string requestId;
31+
32+
public string VSwitchId
33+
{
34+
get
35+
{
36+
return vSwitchId;
37+
}
38+
set
39+
{
40+
vSwitchId = value;
41+
}
42+
}
43+
44+
public string RequestId
45+
{
46+
get
47+
{
48+
return requestId;
49+
}
50+
set
51+
{
52+
requestId = value;
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)