-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
609 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.0.8' | ||
__version__ = '1.0.9' |
44 changes: 44 additions & 0 deletions
44
...n-sdk-swas-open/aliyunsdkswas_open/request/v20200601/AddCustomImageShareAccountRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class AddCustomImageShareAccountRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'AddCustomImageShareAccount','SWAS-OPEN') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_ImageId(self): # String | ||
return self.get_query_params().get('ImageId') | ||
|
||
def set_ImageId(self, ImageId): # String | ||
self.add_query_param('ImageId', ImageId) | ||
def get_ClientToken(self): # String | ||
return self.get_query_params().get('ClientToken') | ||
|
||
def set_ClientToken(self, ClientToken): # String | ||
self.add_query_param('ClientToken', ClientToken) | ||
def get_Accounts(self): # RepeatList | ||
return self.get_query_params().get('Account') | ||
|
||
def set_Accounts(self, Account): # RepeatList | ||
for depth1 in range(len(Account)): | ||
self.add_query_param('Account.' + str(depth1 + 1), Account[depth1]) |
48 changes: 48 additions & 0 deletions
48
...python-sdk-swas-open/aliyunsdkswas_open/request/v20200601/ApplyFirewallTemplateRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class ApplyFirewallTemplateRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'ApplyFirewallTemplate','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_FirewallTemplateId(self): # String | ||
return self.get_query_params().get('FirewallTemplateId') | ||
|
||
def set_FirewallTemplateId(self, FirewallTemplateId): # String | ||
self.add_query_param('FirewallTemplateId', FirewallTemplateId) | ||
def get_ClientToken(self): # String | ||
return self.get_query_params().get('ClientToken') | ||
|
||
def set_ClientToken(self, ClientToken): # String | ||
self.add_query_param('ClientToken', ClientToken) | ||
def get_InstanceId(self): # String | ||
return self.get_query_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_query_param('InstanceId', InstanceId) | ||
def get_InstanceIdss(self): # RepeatList | ||
return self.get_query_params().get('InstanceIds') | ||
|
||
def set_InstanceIdss(self, InstanceIds): # RepeatList | ||
for depth1 in range(len(InstanceIds)): | ||
self.add_query_param('InstanceIds.' + str(depth1 + 1), InstanceIds[depth1]) |
50 changes: 50 additions & 0 deletions
50
...ython-sdk-swas-open/aliyunsdkswas_open/request/v20200601/CreateFirewallTemplateRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class CreateFirewallTemplateRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'CreateFirewallTemplate','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_Description(self): # String | ||
return self.get_query_params().get('Description') | ||
|
||
def set_Description(self, Description): # String | ||
self.add_query_param('Description', Description) | ||
def get_Name(self): # String | ||
return self.get_query_params().get('Name') | ||
|
||
def set_Name(self, Name): # String | ||
self.add_query_param('Name', Name) | ||
def get_FirewallRules(self): # RepeatList | ||
return self.get_query_params().get('FirewallRule') | ||
|
||
def set_FirewallRules(self, FirewallRule): # RepeatList | ||
for depth1 in range(len(FirewallRule)): | ||
if FirewallRule[depth1].get('RuleProtocol') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.RuleProtocol', FirewallRule[depth1].get('RuleProtocol')) | ||
if FirewallRule[depth1].get('Port') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Port', FirewallRule[depth1].get('Port')) | ||
if FirewallRule[depth1].get('SourceCidrIp') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.SourceCidrIp', FirewallRule[depth1].get('SourceCidrIp')) | ||
if FirewallRule[depth1].get('Remark') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Remark', FirewallRule[depth1].get('Remark')) |
45 changes: 45 additions & 0 deletions
45
...-sdk-swas-open/aliyunsdkswas_open/request/v20200601/CreateFirewallTemplateRulesRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class CreateFirewallTemplateRulesRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'CreateFirewallTemplateRules','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_FirewallTemplateId(self): # String | ||
return self.get_query_params().get('FirewallTemplateId') | ||
|
||
def set_FirewallTemplateId(self, FirewallTemplateId): # String | ||
self.add_query_param('FirewallTemplateId', FirewallTemplateId) | ||
def get_FirewallRules(self): # RepeatList | ||
return self.get_query_params().get('FirewallRule') | ||
|
||
def set_FirewallRules(self, FirewallRule): # RepeatList | ||
for depth1 in range(len(FirewallRule)): | ||
if FirewallRule[depth1].get('RuleProtocol') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.RuleProtocol', FirewallRule[depth1].get('RuleProtocol')) | ||
if FirewallRule[depth1].get('Port') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Port', FirewallRule[depth1].get('Port')) | ||
if FirewallRule[depth1].get('SourceCidrIp') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.SourceCidrIp', FirewallRule[depth1].get('SourceCidrIp')) | ||
if FirewallRule[depth1].get('Remark') is not None: | ||
self.add_query_param('FirewallRule.' + str(depth1 + 1) + '.Remark', FirewallRule[depth1].get('Remark')) |
48 changes: 48 additions & 0 deletions
48
...-sdk-swas-open/aliyunsdkswas_open/request/v20200601/DeleteFirewallTemplateRulesRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class DeleteFirewallTemplateRulesRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DeleteFirewallTemplateRules','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_FirewallTemplateId(self): # String | ||
return self.get_query_params().get('FirewallTemplateId') | ||
|
||
def set_FirewallTemplateId(self, FirewallTemplateId): # String | ||
self.add_query_param('FirewallTemplateId', FirewallTemplateId) | ||
def get_ClientToken(self): # String | ||
return self.get_query_params().get('ClientToken') | ||
|
||
def set_ClientToken(self, ClientToken): # String | ||
self.add_query_param('ClientToken', ClientToken) | ||
def get_InstanceId(self): # String | ||
return self.get_query_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_query_param('InstanceId', InstanceId) | ||
def get_FirewallTemplateRuleIds(self): # RepeatList | ||
return self.get_query_params().get('FirewallTemplateRuleId') | ||
|
||
def set_FirewallTemplateRuleIds(self, FirewallTemplateRuleId): # RepeatList | ||
for depth1 in range(len(FirewallTemplateRuleId)): | ||
self.add_query_param('FirewallTemplateRuleId.' + str(depth1 + 1), FirewallTemplateRuleId[depth1]) |
43 changes: 43 additions & 0 deletions
43
...thon-sdk-swas-open/aliyunsdkswas_open/request/v20200601/DeleteFirewallTemplatesRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class DeleteFirewallTemplatesRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DeleteFirewallTemplates','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_FirewallTemplateIds(self): # RepeatList | ||
return self.get_query_params().get('FirewallTemplateId') | ||
|
||
def set_FirewallTemplateIds(self, FirewallTemplateId): # RepeatList | ||
for depth1 in range(len(FirewallTemplateId)): | ||
self.add_query_param('FirewallTemplateId.' + str(depth1 + 1), FirewallTemplateId[depth1]) | ||
def get_ClientToken(self): # String | ||
return self.get_query_params().get('ClientToken') | ||
|
||
def set_ClientToken(self, ClientToken): # String | ||
self.add_query_param('ClientToken', ClientToken) | ||
def get_InstanceId(self): # String | ||
return self.get_query_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_query_param('InstanceId', InstanceId) |
58 changes: 58 additions & 0 deletions
58
...-open/aliyunsdkswas_open/request/v20200601/DescribeFirewallTemplateApplyResultsRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class DescribeFirewallTemplateApplyResultsRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'SWAS-OPEN', '2020-06-01', 'DescribeFirewallTemplateApplyResults','SWAS-OPEN') | ||
self.set_method('POST') | ||
|
||
def get_FirewallTemplateId(self): # String | ||
return self.get_query_params().get('FirewallTemplateId') | ||
|
||
def set_FirewallTemplateId(self, FirewallTemplateId): # String | ||
self.add_query_param('FirewallTemplateId', FirewallTemplateId) | ||
def get_ClientToken(self): # String | ||
return self.get_query_params().get('ClientToken') | ||
|
||
def set_ClientToken(self, ClientToken): # String | ||
self.add_query_param('ClientToken', ClientToken) | ||
def get_PageNumber(self): # Integer | ||
return self.get_query_params().get('PageNumber') | ||
|
||
def set_PageNumber(self, PageNumber): # Integer | ||
self.add_query_param('PageNumber', PageNumber) | ||
def get_InstanceId(self): # String | ||
return self.get_query_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_query_param('InstanceId', InstanceId) | ||
def get_PageSize(self): # Integer | ||
return self.get_query_params().get('PageSize') | ||
|
||
def set_PageSize(self, PageSize): # Integer | ||
self.add_query_param('PageSize', PageSize) | ||
def get_TaskIds(self): # RepeatList | ||
return self.get_query_params().get('TaskId') | ||
|
||
def set_TaskIds(self, TaskId): # RepeatList | ||
for depth1 in range(len(TaskId)): | ||
self.add_query_param('TaskId.' + str(depth1 + 1), TaskId[depth1]) |
Oops, something went wrong.