Skip to content

Commit

Permalink
Standardizing api.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 13, 2023
1 parent c5ab0bf commit a36b78b
Show file tree
Hide file tree
Showing 43 changed files with 1,684 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-cloud-siem/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-13 Version: 1.0.2
- Standardizing api.

2023-11-01 Version: 1.0.1
- Standardizing api.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.1'
__version__ = '1.0.2'
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 AddDataSourceLogRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'AddDataSourceLog','cloud-siem')
self.set_method('POST')

def get_CloudCode(self): # String
return self.get_body_params().get('CloudCode')

def set_CloudCode(self, CloudCode): # String
self.add_body_params('CloudCode', CloudCode)
def get_AccountId(self): # String
return self.get_body_params().get('AccountId')

def set_AccountId(self, AccountId): # String
self.add_body_params('AccountId', AccountId)
def get_LogCode(self): # String
return self.get_body_params().get('LogCode')

def set_LogCode(self, LogCode): # String
self.add_body_params('LogCode', LogCode)
def get_DataSourceInstanceLogs(self): # String
return self.get_body_params().get('DataSourceInstanceLogs')

def set_DataSourceInstanceLogs(self, DataSourceInstanceLogs): # String
self.add_body_params('DataSourceInstanceLogs', DataSourceInstanceLogs)
def get_DataSourceInstanceId(self): # String
return self.get_body_params().get('DataSourceInstanceId')

def set_DataSourceInstanceId(self, DataSourceInstanceId): # String
self.add_body_params('DataSourceInstanceId', DataSourceInstanceId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 AddDataSourceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'AddDataSource','cloud-siem')
self.set_method('POST')

def get_DataSourceType(self): # String
return self.get_body_params().get('DataSourceType')

def set_DataSourceType(self, DataSourceType): # String
self.add_body_params('DataSourceType', DataSourceType)
def get_CloudCode(self): # String
return self.get_body_params().get('CloudCode')

def set_CloudCode(self, CloudCode): # String
self.add_body_params('CloudCode', CloudCode)
def get_DataSourceInstanceName(self): # String
return self.get_body_params().get('DataSourceInstanceName')

def set_DataSourceInstanceName(self, DataSourceInstanceName): # String
self.add_body_params('DataSourceInstanceName', DataSourceInstanceName)
def get_AccountId(self): # String
return self.get_body_params().get('AccountId')

def set_AccountId(self, AccountId): # String
self.add_body_params('AccountId', AccountId)
def get_DataSourceInstanceRemark(self): # String
return self.get_body_params().get('DataSourceInstanceRemark')

def set_DataSourceInstanceRemark(self, DataSourceInstanceRemark): # String
self.add_body_params('DataSourceInstanceRemark', DataSourceInstanceRemark)
def get_DataSourceInstanceParams(self): # String
return self.get_body_params().get('DataSourceInstanceParams')

def set_DataSourceInstanceParams(self, DataSourceInstanceParams): # String
self.add_body_params('DataSourceInstanceParams', DataSourceInstanceParams)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 AddUserRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'AddUser','cloud-siem')
self.set_method('POST')

def get_AddedUserId(self): # Long
return self.get_body_params().get('AddedUserId')

def set_AddedUserId(self, AddedUserId): # Long
self.add_body_params('AddedUserId', AddedUserId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 AddUserSourceLogConfigRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'AddUserSourceLogConfig','cloud-siem')
self.set_method('POST')

def get_DisPlayLine(self): # String
return self.get_body_params().get('DisPlayLine')

def set_DisPlayLine(self, DisPlayLine): # String
self.add_body_params('DisPlayLine', DisPlayLine)
def get_SubUserId(self): # Long
return self.get_body_params().get('SubUserId')

def set_SubUserId(self, SubUserId): # Long
self.add_body_params('SubUserId', SubUserId)
def get_SourceProdCode(self): # String
return self.get_body_params().get('SourceProdCode')

def set_SourceProdCode(self, SourceProdCode): # String
self.add_body_params('SourceProdCode', SourceProdCode)
def get_SourceLogInfo(self): # String
return self.get_body_params().get('SourceLogInfo')

def set_SourceLogInfo(self, SourceLogInfo): # String
self.add_body_params('SourceLogInfo', SourceLogInfo)
def get_Deleted(self): # Integer
return self.get_body_params().get('Deleted')

def set_Deleted(self, Deleted): # Integer
self.add_body_params('Deleted', Deleted)
def get_SourceLogCode(self): # String
return self.get_body_params().get('SourceLogCode')

def set_SourceLogCode(self, SourceLogCode): # String
self.add_body_params('SourceLogCode', SourceLogCode)
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 BindAccountRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'BindAccount','cloud-siem')
self.set_method('POST')

def get_CloudCode(self): # String
return self.get_body_params().get('CloudCode')

def set_CloudCode(self, CloudCode): # String
self.add_body_params('CloudCode', CloudCode)
def get_AccountId(self): # String
return self.get_body_params().get('AccountId')

def set_AccountId(self, AccountId): # String
self.add_body_params('AccountId', AccountId)
def get_AccountName(self): # String
return self.get_body_params().get('AccountName')

def set_AccountName(self, AccountName): # String
self.add_body_params('AccountName', AccountName)
def get_AccessId(self): # String
return self.get_body_params().get('AccessId')

def set_AccessId(self, AccessId): # String
self.add_body_params('AccessId', AccessId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 DeleteBindAccountRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'DeleteBindAccount','cloud-siem')
self.set_method('POST')

def get_CloudCode(self): # String
return self.get_body_params().get('CloudCode')

def set_CloudCode(self, CloudCode): # String
self.add_body_params('CloudCode', CloudCode)
def get_AccountId(self): # String
return self.get_body_params().get('AccountId')

def set_AccountId(self, AccountId): # String
self.add_body_params('AccountId', AccountId)
def get_BindId(self): # Long
return self.get_body_params().get('BindId')

def set_BindId(self, BindId): # Long
self.add_body_params('BindId', BindId)
def get_AccessId(self): # String
return self.get_body_params().get('AccessId')

def set_AccessId(self, AccessId): # String
self.add_body_params('AccessId', AccessId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 DeleteDataSourceLogRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'cloud-siem', '2022-06-16', 'DeleteDataSourceLog','cloud-siem')
self.set_method('POST')

def get_CloudCode(self): # String
return self.get_body_params().get('CloudCode')

def set_CloudCode(self, CloudCode): # String
self.add_body_params('CloudCode', CloudCode)
def get_AccountId(self): # String
return self.get_body_params().get('AccountId')

def set_AccountId(self, AccountId): # String
self.add_body_params('AccountId', AccountId)
def get_LogInstanceId(self): # String
return self.get_body_params().get('LogInstanceId')

def set_LogInstanceId(self, LogInstanceId): # String
self.add_body_params('LogInstanceId', LogInstanceId)
def get_DataSourceInstanceId(self): # String
return self.get_body_params().get('DataSourceInstanceId')

def set_DataSourceInstanceId(self, DataSourceInstanceId): # String
self.add_body_params('DataSourceInstanceId', DataSourceInstanceId)
Loading

0 comments on commit a36b78b

Please sign in to comment.