Skip to content

Commit c6e8a5b

Browse files
committed
Add ModifyInstanceProperties.
1 parent 1a5345c commit c6e8a5b

8 files changed

+269
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-02-07 Version: 1.0.1
2+
- Add ModifyInstanceProperties.
3+
14
2025-02-06 Version: 1.8.25
25
- DescribeLicenseCodes support filter by mac address or system id.
36

aliyun-net-sdk-wss/Wss/Model/V20211221/DescribePackageDeductionsRequest.cs

+30
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public DescribePackageDeductionsRequest()
3636
Method = MethodType.POST;
3737
}
3838

39+
private long? endTime;
40+
41+
private long? startTime;
42+
3943
private int? pageNum;
4044

4145
private string resourceType;
@@ -46,6 +50,32 @@ public DescribePackageDeductionsRequest()
4650

4751
private int? pageSize;
4852

53+
public long? EndTime
54+
{
55+
get
56+
{
57+
return endTime;
58+
}
59+
set
60+
{
61+
endTime = value;
62+
DictionaryUtil.Add(QueryParameters, "EndTime", value.ToString());
63+
}
64+
}
65+
66+
public long? StartTime
67+
{
68+
get
69+
{
70+
return startTime;
71+
}
72+
set
73+
{
74+
startTime = value;
75+
DictionaryUtil.Add(QueryParameters, "StartTime", value.ToString());
76+
}
77+
}
78+
4979
public int? PageNum
5080
{
5181
get

aliyun-net-sdk-wss/Wss/Model/V20211221/DescribePackageDeductionsResponse.cs

+28
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public class DescribePackageDeductionsResponse : AcsResponse
3333

3434
private long? totalCount;
3535

36+
private long? totalUsedTime;
37+
38+
private float? totalUsedCoreTime;
39+
3640
private List<DescribePackageDeductions_Deduction> deductions;
3741

3842
public int? PageNum
@@ -83,6 +87,30 @@ public long? TotalCount
8387
}
8488
}
8589

90+
public long? TotalUsedTime
91+
{
92+
get
93+
{
94+
return totalUsedTime;
95+
}
96+
set
97+
{
98+
totalUsedTime = value;
99+
}
100+
}
101+
102+
public float? TotalUsedCoreTime
103+
{
104+
get
105+
{
106+
return totalUsedCoreTime;
107+
}
108+
set
109+
{
110+
totalUsedCoreTime = value;
111+
}
112+
}
113+
86114
public List<DescribePackageDeductions_Deduction> Deductions
87115
{
88116
get
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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.wss;
26+
using Aliyun.Acs.wss.Transform;
27+
using Aliyun.Acs.wss.Transform.V20211221;
28+
29+
namespace Aliyun.Acs.wss.Model.V20211221
30+
{
31+
public class ModifyInstancePropertiesRequest : RpcAcsRequest<ModifyInstancePropertiesResponse>
32+
{
33+
public ModifyInstancePropertiesRequest()
34+
: base("wss", "2021-12-21", "ModifyInstanceProperties")
35+
{
36+
Method = MethodType.POST;
37+
}
38+
39+
private string resourceType;
40+
41+
private string instanceId;
42+
43+
private List<string> instanceIdss = new List<string>(){ };
44+
45+
private string _value;
46+
47+
private string key;
48+
49+
public string ResourceType
50+
{
51+
get
52+
{
53+
return resourceType;
54+
}
55+
set
56+
{
57+
resourceType = value;
58+
DictionaryUtil.Add(QueryParameters, "ResourceType", value);
59+
}
60+
}
61+
62+
public string InstanceId
63+
{
64+
get
65+
{
66+
return instanceId;
67+
}
68+
set
69+
{
70+
instanceId = value;
71+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
72+
}
73+
}
74+
75+
public List<string> InstanceIdss
76+
{
77+
get
78+
{
79+
return instanceIdss;
80+
}
81+
82+
set
83+
{
84+
instanceIdss = value;
85+
}
86+
}
87+
88+
public string _Value
89+
{
90+
get
91+
{
92+
return _value;
93+
}
94+
set
95+
{
96+
_value = value;
97+
DictionaryUtil.Add(QueryParameters, "Value", value);
98+
}
99+
}
100+
101+
public string Key
102+
{
103+
get
104+
{
105+
return key;
106+
}
107+
set
108+
{
109+
key = value;
110+
DictionaryUtil.Add(QueryParameters, "Key", value);
111+
}
112+
}
113+
114+
public override bool CheckShowJsonItemName()
115+
{
116+
return false;
117+
}
118+
119+
public override ModifyInstancePropertiesResponse GetResponse(UnmarshallerContext unmarshallerContext)
120+
{
121+
return ModifyInstancePropertiesResponseUnmarshaller.Unmarshall(unmarshallerContext);
122+
}
123+
}
124+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.wss.Model.V20211221
24+
{
25+
public class ModifyInstancePropertiesResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
public string RequestId
31+
{
32+
get
33+
{
34+
return requestId;
35+
}
36+
set
37+
{
38+
requestId = value;
39+
}
40+
}
41+
}
42+
}

aliyun-net-sdk-wss/Wss/Transform/V20211221/DescribePackageDeductionsResponseUnmarshaller.cs

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public static DescribePackageDeductionsResponse Unmarshall(UnmarshallerContext _
3535
describePackageDeductionsResponse.RequestId = _ctx.StringValue("DescribePackageDeductions.RequestId");
3636
describePackageDeductionsResponse.PageSize = _ctx.IntegerValue("DescribePackageDeductions.PageSize");
3737
describePackageDeductionsResponse.TotalCount = _ctx.LongValue("DescribePackageDeductions.TotalCount");
38+
describePackageDeductionsResponse.TotalUsedTime = _ctx.LongValue("DescribePackageDeductions.TotalUsedTime");
39+
describePackageDeductionsResponse.TotalUsedCoreTime = _ctx.FloatValue("DescribePackageDeductions.TotalUsedCoreTime");
3840

3941
List<DescribePackageDeductionsResponse.DescribePackageDeductions_Deduction> describePackageDeductionsResponse_deductions = new List<DescribePackageDeductionsResponse.DescribePackageDeductions_Deduction>();
4042
for (int i = 0; i < _ctx.Length("DescribePackageDeductions.Deductions.Length"); i++) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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.wss.Model.V20211221;
24+
25+
namespace Aliyun.Acs.wss.Transform.V20211221
26+
{
27+
public class ModifyInstancePropertiesResponseUnmarshaller
28+
{
29+
public static ModifyInstancePropertiesResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
ModifyInstancePropertiesResponse modifyInstancePropertiesResponse = new ModifyInstancePropertiesResponse();
32+
33+
modifyInstancePropertiesResponse.HttpResponse = _ctx.HttpResponse;
34+
modifyInstancePropertiesResponse.RequestId = _ctx.StringValue("ModifyInstanceProperties.RequestId");
35+
36+
return modifyInstancePropertiesResponse;
37+
}
38+
}
39+
}

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

0 commit comments

Comments
 (0)