Skip to content

Commit

Permalink
Generated 2020-06-01 for SWAS-OPEN.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 16, 2024
1 parent 7e19935 commit 88477b5
Show file tree
Hide file tree
Showing 16 changed files with 609 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-swas-open/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-07-16 Version: 1.0.9
- Generated 2020-06-01 for `SWAS-OPEN`.

2024-06-17 Version: 1.0.8
- Generated 2020-06-01 for `SWAS-OPEN`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-swas-open/aliyunsdkswas_open/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.8'
__version__ = '1.0.9'
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])
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])
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'))
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'))
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])
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)
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])
Loading

0 comments on commit 88477b5

Please sign in to comment.