Skip to content

Commit 6b22901

Browse files
committed
support UpdateSecurityGroup
1 parent bfc02f7 commit 6b22901

8 files changed

+502
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-01-15 Version: 3.1.15
2+
- support UpdateSecurityGroup
3+
14
2024-01-08 Version: 0.0.2
25
- Support share resource to service for RS.
36
- Support display precheck information.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
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.hitsdb.Transform;
26+
using Aliyun.Acs.hitsdb.Transform.V20200615;
27+
28+
namespace Aliyun.Acs.hitsdb.Model.V20200615
29+
{
30+
public class GetInstanceSecurityGroupsRequest : RpcAcsRequest<GetInstanceSecurityGroupsResponse>
31+
{
32+
public GetInstanceSecurityGroupsRequest()
33+
: base("hitsdb", "2020-06-15", "GetInstanceSecurityGroups", "hitsdb", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.hitsdb.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.hitsdb.Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private long? resourceOwnerId;
44+
45+
private string securityToken;
46+
47+
private string resourceOwnerAccount;
48+
49+
private string ownerAccount;
50+
51+
private long? ownerId;
52+
53+
private string instanceId;
54+
55+
public long? ResourceOwnerId
56+
{
57+
get
58+
{
59+
return resourceOwnerId;
60+
}
61+
set
62+
{
63+
resourceOwnerId = value;
64+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString());
65+
}
66+
}
67+
68+
public string SecurityToken
69+
{
70+
get
71+
{
72+
return securityToken;
73+
}
74+
set
75+
{
76+
securityToken = value;
77+
DictionaryUtil.Add(QueryParameters, "SecurityToken", value);
78+
}
79+
}
80+
81+
public string ResourceOwnerAccount
82+
{
83+
get
84+
{
85+
return resourceOwnerAccount;
86+
}
87+
set
88+
{
89+
resourceOwnerAccount = value;
90+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerAccount", value);
91+
}
92+
}
93+
94+
public string OwnerAccount
95+
{
96+
get
97+
{
98+
return ownerAccount;
99+
}
100+
set
101+
{
102+
ownerAccount = value;
103+
DictionaryUtil.Add(QueryParameters, "OwnerAccount", value);
104+
}
105+
}
106+
107+
public long? OwnerId
108+
{
109+
get
110+
{
111+
return ownerId;
112+
}
113+
set
114+
{
115+
ownerId = value;
116+
DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
117+
}
118+
}
119+
120+
public string InstanceId
121+
{
122+
get
123+
{
124+
return instanceId;
125+
}
126+
set
127+
{
128+
instanceId = value;
129+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
130+
}
131+
}
132+
133+
public override bool CheckShowJsonItemName()
134+
{
135+
return false;
136+
}
137+
138+
public override GetInstanceSecurityGroupsResponse GetResponse(UnmarshallerContext unmarshallerContext)
139+
{
140+
return GetInstanceSecurityGroupsResponseUnmarshaller.Unmarshall(unmarshallerContext);
141+
}
142+
}
143+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.hitsdb.Model.V20200615
24+
{
25+
public class GetInstanceSecurityGroupsResponse : AcsResponse
26+
{
27+
28+
private string instanceId;
29+
30+
private string requestId;
31+
32+
private List<string> securityGroups;
33+
34+
public string InstanceId
35+
{
36+
get
37+
{
38+
return instanceId;
39+
}
40+
set
41+
{
42+
instanceId = value;
43+
}
44+
}
45+
46+
public string RequestId
47+
{
48+
get
49+
{
50+
return requestId;
51+
}
52+
set
53+
{
54+
requestId = value;
55+
}
56+
}
57+
58+
public List<string> SecurityGroups
59+
{
60+
get
61+
{
62+
return securityGroups;
63+
}
64+
set
65+
{
66+
securityGroups = value;
67+
}
68+
}
69+
}
70+
}
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.hitsdb.Transform;
26+
using Aliyun.Acs.hitsdb.Transform.V20200615;
27+
28+
namespace Aliyun.Acs.hitsdb.Model.V20200615
29+
{
30+
public class UpdateInstanceSecurityGroupsRequest : RpcAcsRequest<UpdateInstanceSecurityGroupsResponse>
31+
{
32+
public UpdateInstanceSecurityGroupsRequest()
33+
: base("hitsdb", "2020-06-15", "UpdateInstanceSecurityGroups", "hitsdb", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.hitsdb.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.hitsdb.Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private long? resourceOwnerId;
44+
45+
private string securityToken;
46+
47+
private string resourceOwnerAccount;
48+
49+
private string ownerAccount;
50+
51+
private long? ownerId;
52+
53+
private string instanceId;
54+
55+
private string securityGroups;
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 SecurityToken
71+
{
72+
get
73+
{
74+
return securityToken;
75+
}
76+
set
77+
{
78+
securityToken = value;
79+
DictionaryUtil.Add(QueryParameters, "SecurityToken", 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 string InstanceId
123+
{
124+
get
125+
{
126+
return instanceId;
127+
}
128+
set
129+
{
130+
instanceId = value;
131+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
132+
}
133+
}
134+
135+
public string SecurityGroups
136+
{
137+
get
138+
{
139+
return securityGroups;
140+
}
141+
set
142+
{
143+
securityGroups = value;
144+
DictionaryUtil.Add(QueryParameters, "SecurityGroups", value);
145+
}
146+
}
147+
148+
public override bool CheckShowJsonItemName()
149+
{
150+
return false;
151+
}
152+
153+
public override UpdateInstanceSecurityGroupsResponse GetResponse(UnmarshallerContext unmarshallerContext)
154+
{
155+
return UpdateInstanceSecurityGroupsResponseUnmarshaller.Unmarshall(unmarshallerContext);
156+
}
157+
}
158+
}

0 commit comments

Comments
 (0)