File tree 8 files changed +221
-2
lines changed
8 files changed +221
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
4
2021-01-21 Version: 1.0.9
2
5
- Add.
3
6
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public CreateStackRequest()
52
52
53
53
private string templateId ;
54
54
55
+ private List < Tags > tagss = new List < Tags > ( ) { } ;
56
+
55
57
private List < Parameters > parameterss = new List < Parameters > ( ) { } ;
56
58
57
59
private string clientToken ;
@@ -148,6 +150,24 @@ public string TemplateId
148
150
}
149
151
}
150
152
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
+
151
171
public List < Parameters > Parameterss
152
172
{
153
173
get
@@ -274,6 +294,38 @@ public string StackPolicyURL
274
294
}
275
295
}
276
296
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
+
277
329
public class Parameters
278
330
{
279
331
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ public class GetStackResponse : AcsResponse
65
65
66
66
private List < GetStack_Parameter > parameters ;
67
67
68
+ private List < GetStack_Tag > tags ;
69
+
68
70
private List < Dictionary < string , string > > outputs ;
69
71
70
72
private List < string > notificationURLs ;
@@ -309,6 +311,18 @@ public List<GetStack_Parameter> Parameters
309
311
}
310
312
}
311
313
314
+ public List < GetStack_Tag > Tags
315
+ {
316
+ get
317
+ {
318
+ return tags ;
319
+ }
320
+ set
321
+ {
322
+ tags = value ;
323
+ }
324
+ }
325
+
312
326
public List < Dictionary < string , string > > Outputs
313
327
{
314
328
get
@@ -364,5 +378,37 @@ public string ParameterValue
364
378
}
365
379
}
366
380
}
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
+ }
367
413
}
368
414
}
Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ public class ListStacks_Stack
124
124
125
125
private string stackType ;
126
126
127
+ private List < ListStacks_Tag > tags ;
128
+
127
129
public string CreateTime
128
130
{
129
131
get
@@ -279,6 +281,50 @@ public string StackType
279
281
stackType = value ;
280
282
}
281
283
}
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
+ }
282
328
}
283
329
}
284
330
}
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public UpdateStackRequest()
51
51
52
52
private string templateId ;
53
53
54
+ private List < Tags > tagss = new List < Tags > ( ) { } ;
55
+
54
56
private List < Parameters > parameterss = new List < Parameters > ( ) { } ;
55
57
56
58
private string clientToken ;
@@ -138,6 +140,24 @@ public string TemplateId
138
140
}
139
141
}
140
142
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
+
141
161
public List < Parameters > Parameterss
142
162
{
143
163
get
@@ -286,6 +306,38 @@ public string StackPolicyURL
286
306
}
287
307
}
288
308
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
+
289
341
public class Parameters
290
342
{
291
343
Original file line number Diff line number Diff line change @@ -80,7 +80,17 @@ public static GetStackResponse Unmarshall(UnmarshallerContext _ctx)
80
80
81
81
getStackResponse_parameters . Add ( parameter ) ;
82
82
}
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 ;
84
94
85
95
return getStackResponse ;
86
96
}
Original file line number Diff line number Diff line change @@ -53,6 +53,16 @@ public static ListStacksResponse Unmarshall(UnmarshallerContext _ctx)
53
53
stack . DriftDetectionTime = _ctx . StringValue ( "ListStacks.Stacks[" + i + "].DriftDetectionTime" ) ;
54
54
stack . StackType = _ctx . StringValue ( "ListStacks.Stacks[" + i + "].StackType" ) ;
55
55
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
+
56
66
listStacksResponse_stacks . Add ( stack ) ;
57
67
}
58
68
listStacksResponse . Stacks = listStacksResponse_stacks ;
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<TargetFrameworks >netstandard2.0;net45</TargetFrameworks >
5
5
<RootNamespace >Aliyun.Acs.ROS</RootNamespace >
6
- <Version >3.5 .0</Version >
6
+ <Version >3.6 .0</Version >
7
7
<Authors >Alibaba Cloud</Authors >
8
8
<Copyright >©2009-2019 Alibaba Cloud</Copyright >
9
9
<GeneratePackageOnBuild >false</GeneratePackageOnBuild >
You can’t perform that action at this time.
0 commit comments