Skip to content

Commit

Permalink
Dataphin openapi start.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 30, 2024
1 parent 9a189ec commit 01f92ca
Show file tree
Hide file tree
Showing 47 changed files with 1,874 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-dataphin-public/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-30 Version: 1.0.3
- Dataphin openapi start.

2024-10-11 Version: 1.0.2
- Dataphin v4.3 openapi.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2'
__version__ = '1.0.3'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreateBatchTaskRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreateBatchTask')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_CreateCommand(self): # Struct
return self.get_body_params().get('CreateCommand')

def set_CreateCommand(self, CreateCommand): # Struct
self.add_body_params("CreateCommand", json.dumps(CreateCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreateBizEntityRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreateBizEntity')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_CreateCommand(self): # Struct
return self.get_body_params().get('CreateCommand')

def set_CreateCommand(self, CreateCommand): # Struct
self.add_body_params("CreateCommand", json.dumps(CreateCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreateBizUnitRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreateBizUnit')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_CreateCommand(self): # Struct
return self.get_body_params().get('CreateCommand')

def set_CreateCommand(self, CreateCommand): # Struct
self.add_body_params("CreateCommand", json.dumps(CreateCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreateDataDomainRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreateDataDomain')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_CreateCommand(self): # Struct
return self.get_body_params().get('CreateCommand')

def set_CreateCommand(self, CreateCommand): # Struct
self.add_body_params("CreateCommand", json.dumps(CreateCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreatePipelineNodeRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreatePipelineNode')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_CreatePipelineNodeCommand(self): # Struct
return self.get_body_params().get('CreatePipelineNodeCommand')

def set_CreatePipelineNodeCommand(self, CreatePipelineNodeCommand): # Struct
self.add_body_params("CreatePipelineNodeCommand", json.dumps(CreatePipelineNodeCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class CreateStreamBatchJobMappingRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'CreateStreamBatchJobMapping')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_StreamBatchJobMappingCreateCommand(self): # Struct
return self.get_body_params().get('StreamBatchJobMappingCreateCommand')

def set_StreamBatchJobMappingCreateCommand(self, StreamBatchJobMappingCreateCommand): # Struct
self.add_body_params("StreamBatchJobMappingCreateCommand", json.dumps(StreamBatchJobMappingCreateCommand))
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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
import json

class DeleteBatchTaskRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'DeleteBatchTask')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_DeleteCommand(self): # Struct
return self.get_body_params().get('DeleteCommand')

def set_DeleteCommand(self, DeleteCommand): # Struct
self.add_body_params("DeleteCommand", json.dumps(DeleteCommand))
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 DeleteBizEntityRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'DeleteBizEntity')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_Id(self): # Long
return self.get_query_params().get('Id')

def set_Id(self, Id): # Long
self.add_query_param('Id', Id)
def get_Type(self): # String
return self.get_query_params().get('Type')

def set_Type(self, Type): # String
self.add_query_param('Type', Type)
def get_BizUnitId(self): # Long
return self.get_query_params().get('BizUnitId')

def set_BizUnitId(self, BizUnitId): # Long
self.add_query_param('BizUnitId', BizUnitId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 DeleteBizUnitRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'DeleteBizUnit')
self.set_protocol_type('https')
self.set_method('POST')

def get_OpTenantId(self): # Long
return self.get_query_params().get('OpTenantId')

def set_OpTenantId(self, OpTenantId): # Long
self.add_query_param('OpTenantId', OpTenantId)
def get_Id(self): # Long
return self.get_query_params().get('Id')

def set_Id(self, Id): # Long
self.add_query_param('Id', Id)
Loading

0 comments on commit 01f92ca

Please sign in to comment.