Skip to content

Commit

Permalink
Generated 2023-09-30 for tingwu.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 12, 2023
1 parent 6632424 commit ba06edf
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-tingwu/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-12 Version: 1.0.1
- Generated 2023-09-30 for `tingwu`.

2023-11-01 Version: 1.0.0
- tingwu 2023-09-30 release

2 changes: 1 addition & 1 deletion aliyun-python-sdk-tingwu/aliyunsdktingwu/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 RoaRequest

class CreateTranscriptionPhrasesRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'CreateTranscriptionPhrases')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/resources/phrases')
self.set_method('POST')

def get_body(self): # String
return self.get_body_params().get('body')

def set_body(self, body): # String
self.add_body_params('body', body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 RoaRequest

class DeleteTranscriptionPhrasesRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'DeleteTranscriptionPhrases')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/resources/phrases/[PhraseId]')
self.set_method('DELETE')

def get_PhraseId(self): # String
return self.get_path_params().get('PhraseId')

def set_PhraseId(self, PhraseId): # String
self.add_path_param('PhraseId', PhraseId)
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetTaskInfoRequest(RoaRequest):
def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'GetTaskInfo')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/tasks/[taskId]')
self.set_uri_pattern('/openapi/tingwu/v2/tasks/[TaskId]')
self.set_method('GET')

def get_TaskId(self): # String
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 RoaRequest

class GetTranscriptionPhrasesRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'GetTranscriptionPhrases')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/resources/phrases/[PhraseId]')
self.set_method('GET')

def get_PhraseId(self): # String
return self.get_path_params().get('PhraseId')

def set_PhraseId(self, PhraseId): # String
self.add_path_param('PhraseId', PhraseId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 RoaRequest

class ListTranscriptionPhrasesRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'ListTranscriptionPhrases')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/resources/phrases')
self.set_method('GET')

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 RoaRequest

class UpdateTranscriptionPhrasesRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'tingwu', '2023-09-30', 'UpdateTranscriptionPhrases')
self.set_protocol_type('https')
self.set_uri_pattern('/openapi/tingwu/v2/resources/phrases/[PhraseId]')
self.set_method('PUT')

def get_body(self): # String
return self.get_body_params().get('body')

def set_body(self, body): # String
self.add_body_params('body', body)
def get_PhraseId(self): # String
return self.get_path_params().get('PhraseId')

def set_PhraseId(self, PhraseId): # String
self.add_path_param('PhraseId', PhraseId)

0 comments on commit ba06edf

Please sign in to comment.