Skip to content

Commit 88477b5

Browse files
committed
Generated 2020-06-01 for SWAS-OPEN.
1 parent 7e19935 commit 88477b5

16 files changed

+609
-1
lines changed

aliyun-python-sdk-swas-open/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-07-16 Version: 1.0.9
2+
- Generated 2020-06-01 for `SWAS-OPEN`.
3+
14
2024-06-17 Version: 1.0.8
25
- Generated 2020-06-01 for `SWAS-OPEN`.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.8'
1+
__version__ = '1.0.9'
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class AddCustomImageShareAccountRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'AddCustomImageShareAccount','SWAS-OPEN')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_ImageId(self): # String
30+
return self.get_query_params().get('ImageId')
31+
32+
def set_ImageId(self, ImageId): # String
33+
self.add_query_param('ImageId', ImageId)
34+
def get_ClientToken(self): # String
35+
return self.get_query_params().get('ClientToken')
36+
37+
def set_ClientToken(self, ClientToken): # String
38+
self.add_query_param('ClientToken', ClientToken)
39+
def get_Accounts(self): # RepeatList
40+
return self.get_query_params().get('Account')
41+
42+
def set_Accounts(self, Account): # RepeatList
43+
for depth1 in range(len(Account)):
44+
self.add_query_param('Account.' + str(depth1 + 1), Account[depth1])
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class ApplyFirewallTemplateRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'ApplyFirewallTemplate','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_FirewallTemplateId(self): # String
29+
return self.get_query_params().get('FirewallTemplateId')
30+
31+
def set_FirewallTemplateId(self, FirewallTemplateId): # String
32+
self.add_query_param('FirewallTemplateId', FirewallTemplateId)
33+
def get_ClientToken(self): # String
34+
return self.get_query_params().get('ClientToken')
35+
36+
def set_ClientToken(self, ClientToken): # String
37+
self.add_query_param('ClientToken', ClientToken)
38+
def get_InstanceId(self): # String
39+
return self.get_query_params().get('InstanceId')
40+
41+
def set_InstanceId(self, InstanceId): # String
42+
self.add_query_param('InstanceId', InstanceId)
43+
def get_InstanceIdss(self): # RepeatList
44+
return self.get_query_params().get('InstanceIds')
45+
46+
def set_InstanceIdss(self, InstanceIds): # RepeatList
47+
for depth1 in range(len(InstanceIds)):
48+
self.add_query_param('InstanceIds.' + str(depth1 + 1), InstanceIds[depth1])
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class CreateFirewallTemplateRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'CreateFirewallTemplate','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_Description(self): # String
29+
return self.get_query_params().get('Description')
30+
31+
def set_Description(self, Description): # String
32+
self.add_query_param('Description', Description)
33+
def get_Name(self): # String
34+
return self.get_query_params().get('Name')
35+
36+
def set_Name(self, Name): # String
37+
self.add_query_param('Name', Name)
38+
def get_FirewallRules(self): # RepeatList
39+
return self.get_query_params().get('FirewallRule')
40+
41+
def set_FirewallRules(self, FirewallRule): # RepeatList
42+
for depth1 in range(len(FirewallRule)):
43+
if FirewallRule[depth1].get('RuleProtocol') is not None:
44+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.RuleProtocol', FirewallRule[depth1].get('RuleProtocol'))
45+
if FirewallRule[depth1].get('Port') is not None:
46+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Port', FirewallRule[depth1].get('Port'))
47+
if FirewallRule[depth1].get('SourceCidrIp') is not None:
48+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.SourceCidrIp', FirewallRule[depth1].get('SourceCidrIp'))
49+
if FirewallRule[depth1].get('Remark') is not None:
50+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Remark', FirewallRule[depth1].get('Remark'))
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class CreateFirewallTemplateRulesRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'CreateFirewallTemplateRules','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_FirewallTemplateId(self): # String
29+
return self.get_query_params().get('FirewallTemplateId')
30+
31+
def set_FirewallTemplateId(self, FirewallTemplateId): # String
32+
self.add_query_param('FirewallTemplateId', FirewallTemplateId)
33+
def get_FirewallRules(self): # RepeatList
34+
return self.get_query_params().get('FirewallRule')
35+
36+
def set_FirewallRules(self, FirewallRule): # RepeatList
37+
for depth1 in range(len(FirewallRule)):
38+
if FirewallRule[depth1].get('RuleProtocol') is not None:
39+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.RuleProtocol', FirewallRule[depth1].get('RuleProtocol'))
40+
if FirewallRule[depth1].get('Port') is not None:
41+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Port', FirewallRule[depth1].get('Port'))
42+
if FirewallRule[depth1].get('SourceCidrIp') is not None:
43+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.SourceCidrIp', FirewallRule[depth1].get('SourceCidrIp'))
44+
if FirewallRule[depth1].get('Remark') is not None:
45+
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Remark', FirewallRule[depth1].get('Remark'))
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class DeleteFirewallTemplateRulesRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DeleteFirewallTemplateRules','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_FirewallTemplateId(self): # String
29+
return self.get_query_params().get('FirewallTemplateId')
30+
31+
def set_FirewallTemplateId(self, FirewallTemplateId): # String
32+
self.add_query_param('FirewallTemplateId', FirewallTemplateId)
33+
def get_ClientToken(self): # String
34+
return self.get_query_params().get('ClientToken')
35+
36+
def set_ClientToken(self, ClientToken): # String
37+
self.add_query_param('ClientToken', ClientToken)
38+
def get_InstanceId(self): # String
39+
return self.get_query_params().get('InstanceId')
40+
41+
def set_InstanceId(self, InstanceId): # String
42+
self.add_query_param('InstanceId', InstanceId)
43+
def get_FirewallTemplateRuleIds(self): # RepeatList
44+
return self.get_query_params().get('FirewallTemplateRuleId')
45+
46+
def set_FirewallTemplateRuleIds(self, FirewallTemplateRuleId): # RepeatList
47+
for depth1 in range(len(FirewallTemplateRuleId)):
48+
self.add_query_param('FirewallTemplateRuleId.' + str(depth1 + 1), FirewallTemplateRuleId[depth1])
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class DeleteFirewallTemplatesRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DeleteFirewallTemplates','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_FirewallTemplateIds(self): # RepeatList
29+
return self.get_query_params().get('FirewallTemplateId')
30+
31+
def set_FirewallTemplateIds(self, FirewallTemplateId): # RepeatList
32+
for depth1 in range(len(FirewallTemplateId)):
33+
self.add_query_param('FirewallTemplateId.' + str(depth1 + 1), FirewallTemplateId[depth1])
34+
def get_ClientToken(self): # String
35+
return self.get_query_params().get('ClientToken')
36+
37+
def set_ClientToken(self, ClientToken): # String
38+
self.add_query_param('ClientToken', ClientToken)
39+
def get_InstanceId(self): # String
40+
return self.get_query_params().get('InstanceId')
41+
42+
def set_InstanceId(self, InstanceId): # String
43+
self.add_query_param('InstanceId', InstanceId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class DescribeFirewallTemplateApplyResultsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DescribeFirewallTemplateApplyResults','SWAS-OPEN')
26+
self.set_method('POST')
27+
28+
def get_FirewallTemplateId(self): # String
29+
return self.get_query_params().get('FirewallTemplateId')
30+
31+
def set_FirewallTemplateId(self, FirewallTemplateId): # String
32+
self.add_query_param('FirewallTemplateId', FirewallTemplateId)
33+
def get_ClientToken(self): # String
34+
return self.get_query_params().get('ClientToken')
35+
36+
def set_ClientToken(self, ClientToken): # String
37+
self.add_query_param('ClientToken', ClientToken)
38+
def get_PageNumber(self): # Integer
39+
return self.get_query_params().get('PageNumber')
40+
41+
def set_PageNumber(self, PageNumber): # Integer
42+
self.add_query_param('PageNumber', PageNumber)
43+
def get_InstanceId(self): # String
44+
return self.get_query_params().get('InstanceId')
45+
46+
def set_InstanceId(self, InstanceId): # String
47+
self.add_query_param('InstanceId', InstanceId)
48+
def get_PageSize(self): # Integer
49+
return self.get_query_params().get('PageSize')
50+
51+
def set_PageSize(self, PageSize): # Integer
52+
self.add_query_param('PageSize', PageSize)
53+
def get_TaskIds(self): # RepeatList
54+
return self.get_query_params().get('TaskId')
55+
56+
def set_TaskIds(self, TaskId): # RepeatList
57+
for depth1 in range(len(TaskId)):
58+
self.add_query_param('TaskId.' + str(depth1 + 1), TaskId[depth1])

0 commit comments

Comments
 (0)