Skip to content

Commit d882563

Browse files
committed
初始发布
1 parent 88477b5 commit d882563

16 files changed

+359
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2024-07-18 Version: 1.0.0
2+
初始发布
3+

aliyun-python-sdk-aicontent/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-aicontent
3+
=============================================================
4+
5+
.. This is the aicontent module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'

aliyun-python-sdk-aicontent/aliyunsdkaicontent/request/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'AiContent', '20240611', 'AliyunConsoleOpenApiQueryAliyunConsoleServcieList')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/aliyunconsole/queryAliyunConsoleServcieList')
28+
self.set_method('GET')
29+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class Personalizedtxt2imgAddInferenceJobRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgAddInferenceJob')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/personalizedtxt2img/addInferenceJob')
28+
self.set_method('POST')
29+
30+
def get_body(self): # String
31+
return self.get_body_params().get('body')
32+
33+
def set_body(self, body): # String
34+
self.add_body_params('body', body)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class Personalizedtxt2imgAddModelTrainJobRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgAddModelTrainJob')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/personalizedtxt2img/addModelTrainJob')
28+
self.set_method('POST')
29+
30+
def get_body(self): # String
31+
return self.get_body_params().get('body')
32+
33+
def set_body(self, body): # String
34+
self.add_body_params('body', body)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class Personalizedtxt2imgQueryImageAssetRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgQueryImageAsset')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/personalizedtxt2img/queryImageAsset')
28+
self.set_method('GET')
29+
30+
def get_imageId(self): # String
31+
return self.get_query_params().get('imageId')
32+
33+
def set_imageId(self, imageId): # String
34+
self.add_query_param('imageId', imageId)
35+
def get_modelId(self): # String
36+
return self.get_query_params().get('modelId')
37+
38+
def set_modelId(self, modelId): # String
39+
self.add_query_param('modelId', modelId)
40+
def get_encodeFormat(self): # String
41+
return self.get_query_params().get('encodeFormat')
42+
43+
def set_encodeFormat(self, encodeFormat): # String
44+
self.add_query_param('encodeFormat', encodeFormat)
45+
def get_promptId(self): # String
46+
return self.get_query_params().get('promptId')
47+
48+
def set_promptId(self, promptId): # String
49+
self.add_query_param('promptId', promptId)

0 commit comments

Comments
 (0)