Skip to content

Commit 6e34c9d

Browse files
committed
The creation and update APIs of the stack supports specifing tags, and the query and list APIs supports obtaining tags.
1 parent 570dc15 commit 6e34c9d

8 files changed

+221
-2
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-01-21 Version: 3.6.0
2+
- The creation and update APIs of the stack supports specifing tags, and the query and list APIs supports obtaining tags.
3+
14
2021-01-21 Version: 1.0.9
25
- Add.
36

aliyun-net-sdk-ros/ROS/Model/V20190910/CreateStackRequest.cs

+52
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public CreateStackRequest()
5252

5353
private string templateId;
5454

55+
private List<Tags> tagss = new List<Tags>(){ };
56+
5557
private List<Parameters> parameterss = new List<Parameters>(){ };
5658

5759
private string clientToken;
@@ -148,6 +150,24 @@ public string TemplateId
148150
}
149151
}
150152

153+
public List<Tags> Tagss
154+
{
155+
get
156+
{
157+
return tagss;
158+
}
159+
160+
set
161+
{
162+
tagss = value;
163+
for (int i = 0; i < tagss.Count; i++)
164+
{
165+
DictionaryUtil.Add(QueryParameters,"Tags." + (i + 1) + ".Value", tagss[i].Value);
166+
DictionaryUtil.Add(QueryParameters,"Tags." + (i + 1) + ".Key", tagss[i].Key);
167+
}
168+
}
169+
}
170+
151171
public List<Parameters> Parameterss
152172
{
153173
get
@@ -274,6 +294,38 @@ public string StackPolicyURL
274294
}
275295
}
276296

297+
public class Tags
298+
{
299+
300+
private string value_;
301+
302+
private string key;
303+
304+
public string Value
305+
{
306+
get
307+
{
308+
return value_;
309+
}
310+
set
311+
{
312+
value_ = value;
313+
}
314+
}
315+
316+
public string Key
317+
{
318+
get
319+
{
320+
return key;
321+
}
322+
set
323+
{
324+
key = value;
325+
}
326+
}
327+
}
328+
277329
public class Parameters
278330
{
279331

aliyun-net-sdk-ros/ROS/Model/V20190910/GetStackResponse.cs

+46
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public class GetStackResponse : AcsResponse
6565

6666
private List<GetStack_Parameter> parameters;
6767

68+
private List<GetStack_Tag> tags;
69+
6870
private List<Dictionary<string, string>> outputs;
6971

7072
private List<string> notificationURLs;
@@ -309,6 +311,18 @@ public List<GetStack_Parameter> Parameters
309311
}
310312
}
311313

314+
public List<GetStack_Tag> Tags
315+
{
316+
get
317+
{
318+
return tags;
319+
}
320+
set
321+
{
322+
tags = value;
323+
}
324+
}
325+
312326
public List<Dictionary<string, string>> Outputs
313327
{
314328
get
@@ -364,5 +378,37 @@ public string ParameterValue
364378
}
365379
}
366380
}
381+
382+
public class GetStack_Tag
383+
{
384+
385+
private string key;
386+
387+
private string _value;
388+
389+
public string Key
390+
{
391+
get
392+
{
393+
return key;
394+
}
395+
set
396+
{
397+
key = value;
398+
}
399+
}
400+
401+
public string _Value
402+
{
403+
get
404+
{
405+
return _value;
406+
}
407+
set
408+
{
409+
_value = value;
410+
}
411+
}
412+
}
367413
}
368414
}

aliyun-net-sdk-ros/ROS/Model/V20190910/ListStacksResponse.cs

+46
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public class ListStacks_Stack
124124

125125
private string stackType;
126126

127+
private List<ListStacks_Tag> tags;
128+
127129
public string CreateTime
128130
{
129131
get
@@ -279,6 +281,50 @@ public string StackType
279281
stackType = value;
280282
}
281283
}
284+
285+
public List<ListStacks_Tag> Tags
286+
{
287+
get
288+
{
289+
return tags;
290+
}
291+
set
292+
{
293+
tags = value;
294+
}
295+
}
296+
297+
public class ListStacks_Tag
298+
{
299+
300+
private string key;
301+
302+
private string _value;
303+
304+
public string Key
305+
{
306+
get
307+
{
308+
return key;
309+
}
310+
set
311+
{
312+
key = value;
313+
}
314+
}
315+
316+
public string _Value
317+
{
318+
get
319+
{
320+
return _value;
321+
}
322+
set
323+
{
324+
_value = value;
325+
}
326+
}
327+
}
282328
}
283329
}
284330
}

aliyun-net-sdk-ros/ROS/Model/V20190910/UpdateStackRequest.cs

+52
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public UpdateStackRequest()
5151

5252
private string templateId;
5353

54+
private List<Tags> tagss = new List<Tags>(){ };
55+
5456
private List<Parameters> parameterss = new List<Parameters>(){ };
5557

5658
private string clientToken;
@@ -138,6 +140,24 @@ public string TemplateId
138140
}
139141
}
140142

143+
public List<Tags> Tagss
144+
{
145+
get
146+
{
147+
return tagss;
148+
}
149+
150+
set
151+
{
152+
tagss = value;
153+
for (int i = 0; i < tagss.Count; i++)
154+
{
155+
DictionaryUtil.Add(QueryParameters,"Tags." + (i + 1) + ".Value", tagss[i].Value);
156+
DictionaryUtil.Add(QueryParameters,"Tags." + (i + 1) + ".Key", tagss[i].Key);
157+
}
158+
}
159+
}
160+
141161
public List<Parameters> Parameterss
142162
{
143163
get
@@ -286,6 +306,38 @@ public string StackPolicyURL
286306
}
287307
}
288308

309+
public class Tags
310+
{
311+
312+
private string value_;
313+
314+
private string key;
315+
316+
public string Value
317+
{
318+
get
319+
{
320+
return value_;
321+
}
322+
set
323+
{
324+
value_ = value;
325+
}
326+
}
327+
328+
public string Key
329+
{
330+
get
331+
{
332+
return key;
333+
}
334+
set
335+
{
336+
key = value;
337+
}
338+
}
339+
}
340+
289341
public class Parameters
290342
{
291343

aliyun-net-sdk-ros/ROS/Transform/V20190910/GetStackResponseUnmarshaller.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,17 @@ public static GetStackResponse Unmarshall(UnmarshallerContext _ctx)
8080

8181
getStackResponse_parameters.Add(parameter);
8282
}
83-
getStackResponse.Parameters = getStackResponse_parameters;
83+
getStackResponse.Parameters = getStackResponse_parameters;
84+
85+
List<GetStackResponse.GetStack_Tag> getStackResponse_tags = new List<GetStackResponse.GetStack_Tag>();
86+
for (int i = 0; i < _ctx.Length("GetStack.Tags.Length"); i++) {
87+
GetStackResponse.GetStack_Tag tag = new GetStackResponse.GetStack_Tag();
88+
tag.Key = _ctx.StringValue("GetStack.Tags["+ i +"].Key");
89+
tag._Value = _ctx.StringValue("GetStack.Tags["+ i +"].Value");
90+
91+
getStackResponse_tags.Add(tag);
92+
}
93+
getStackResponse.Tags = getStackResponse_tags;
8494

8595
return getStackResponse;
8696
}

aliyun-net-sdk-ros/ROS/Transform/V20190910/ListStacksResponseUnmarshaller.cs

+10
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ public static ListStacksResponse Unmarshall(UnmarshallerContext _ctx)
5353
stack.DriftDetectionTime = _ctx.StringValue("ListStacks.Stacks["+ i +"].DriftDetectionTime");
5454
stack.StackType = _ctx.StringValue("ListStacks.Stacks["+ i +"].StackType");
5555

56+
List<ListStacksResponse.ListStacks_Stack.ListStacks_Tag> stack_tags = new List<ListStacksResponse.ListStacks_Stack.ListStacks_Tag>();
57+
for (int j = 0; j < _ctx.Length("ListStacks.Stacks["+ i +"].Tags.Length"); j++) {
58+
ListStacksResponse.ListStacks_Stack.ListStacks_Tag tag = new ListStacksResponse.ListStacks_Stack.ListStacks_Tag();
59+
tag.Key = _ctx.StringValue("ListStacks.Stacks["+ i +"].Tags["+ j +"].Key");
60+
tag._Value = _ctx.StringValue("ListStacks.Stacks["+ i +"].Tags["+ j +"].Value");
61+
62+
stack_tags.Add(tag);
63+
}
64+
stack.Tags = stack_tags;
65+
5666
listStacksResponse_stacks.Add(stack);
5767
}
5868
listStacksResponse.Stacks = listStacksResponse_stacks;

aliyun-net-sdk-ros/aliyun-net-sdk-ros.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.ROS</RootNamespace>
6-
<Version>3.5.0</Version>
6+
<Version>3.6.0</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)