Skip to content

Commit 7f21cf8

Browse files
committed
Generated 2025-02-28 for AIPodcast.
1 parent cf5863b commit 7f21cf8

13 files changed

+852
-1
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2055
1+
1.36.2056

aipodcast/CMakeLists.txt

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#
2+
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
18+
19+
set(aipodcast_public_header
20+
include/alibabacloud/aipodcast/AIPodcastClient.h
21+
include/alibabacloud/aipodcast/AIPodcastExport.h )
22+
23+
set(aipodcast_public_header_model
24+
include/alibabacloud/aipodcast/model/PodcastTaskResultQueryRequest.h
25+
include/alibabacloud/aipodcast/model/PodcastTaskResultQueryResult.h
26+
include/alibabacloud/aipodcast/model/PodcastTaskSubmitRequest.h
27+
include/alibabacloud/aipodcast/model/PodcastTaskSubmitResult.h )
28+
29+
set(aipodcast_src
30+
src/AIPodcastClient.cc
31+
src/model/PodcastTaskResultQueryRequest.cc
32+
src/model/PodcastTaskResultQueryResult.cc
33+
src/model/PodcastTaskSubmitRequest.cc
34+
src/model/PodcastTaskSubmitResult.cc )
35+
36+
add_library(aipodcast ${LIB_TYPE}
37+
${aipodcast_public_header}
38+
${aipodcast_public_header_model}
39+
${aipodcast_src})
40+
41+
set_target_properties(aipodcast
42+
PROPERTIES
43+
LINKER_LANGUAGE CXX
44+
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
45+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
46+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
47+
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}aipodcast
48+
)
49+
50+
if(${LIB_TYPE} STREQUAL "SHARED")
51+
set_target_properties(aipodcast
52+
PROPERTIES
53+
DEFINE_SYMBOL ALIBABACLOUD_AIPODCAST_LIBRARY)
54+
endif()
55+
56+
target_include_directories(aipodcast
57+
PRIVATE include
58+
${CMAKE_SOURCE_DIR}/core/include
59+
)
60+
target_link_libraries(aipodcast
61+
core)
62+
63+
if(CMAKE_HOST_WIN32)
64+
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
65+
set(jsoncpp_install_dir ${INSTALL_DIR})
66+
add_dependencies(aipodcast
67+
jsoncpp)
68+
target_include_directories(aipodcast
69+
PRIVATE ${jsoncpp_install_dir}/include)
70+
target_link_libraries(aipodcast
71+
${jsoncpp_install_dir}/lib/jsoncpp.lib)
72+
set_target_properties(aipodcast
73+
PROPERTIES
74+
COMPILE_OPTIONS "/bigobj")
75+
else()
76+
target_include_directories(aipodcast
77+
PRIVATE /usr/include/jsoncpp)
78+
target_link_libraries(aipodcast
79+
jsoncpp)
80+
endif()
81+
82+
install(FILES ${aipodcast_public_header}
83+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aipodcast)
84+
install(FILES ${aipodcast_public_header_model}
85+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aipodcast/model)
86+
install(TARGETS aipodcast
87+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
88+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
89+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
90+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_AIPODCAST_AIPODCASTCLIENT_H_
18+
#define ALIBABACLOUD_AIPODCAST_AIPODCASTCLIENT_H_
19+
20+
#include <future>
21+
#include <alibabacloud/core/AsyncCallerContext.h>
22+
#include <alibabacloud/core/EndpointProvider.h>
23+
#include <alibabacloud/core/RoaServiceClient.h>
24+
#include "AIPodcastExport.h"
25+
#include "model/PodcastTaskResultQueryRequest.h"
26+
#include "model/PodcastTaskResultQueryResult.h"
27+
#include "model/PodcastTaskSubmitRequest.h"
28+
#include "model/PodcastTaskSubmitResult.h"
29+
30+
31+
namespace AlibabaCloud
32+
{
33+
namespace AIPodcast
34+
{
35+
class ALIBABACLOUD_AIPODCAST_EXPORT AIPodcastClient : public RoaServiceClient
36+
{
37+
public:
38+
typedef Outcome<Error, Model::PodcastTaskResultQueryResult> PodcastTaskResultQueryOutcome;
39+
typedef std::future<PodcastTaskResultQueryOutcome> PodcastTaskResultQueryOutcomeCallable;
40+
typedef std::function<void(const AIPodcastClient*, const Model::PodcastTaskResultQueryRequest&, const PodcastTaskResultQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PodcastTaskResultQueryAsyncHandler;
41+
typedef Outcome<Error, Model::PodcastTaskSubmitResult> PodcastTaskSubmitOutcome;
42+
typedef std::future<PodcastTaskSubmitOutcome> PodcastTaskSubmitOutcomeCallable;
43+
typedef std::function<void(const AIPodcastClient*, const Model::PodcastTaskSubmitRequest&, const PodcastTaskSubmitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PodcastTaskSubmitAsyncHandler;
44+
45+
AIPodcastClient(const Credentials &credentials, const ClientConfiguration &configuration);
46+
AIPodcastClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
47+
AIPodcastClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
48+
~AIPodcastClient();
49+
PodcastTaskResultQueryOutcome podcastTaskResultQuery(const Model::PodcastTaskResultQueryRequest &request)const;
50+
void podcastTaskResultQueryAsync(const Model::PodcastTaskResultQueryRequest& request, const PodcastTaskResultQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
51+
PodcastTaskResultQueryOutcomeCallable podcastTaskResultQueryCallable(const Model::PodcastTaskResultQueryRequest& request) const;
52+
PodcastTaskSubmitOutcome podcastTaskSubmit(const Model::PodcastTaskSubmitRequest &request)const;
53+
void podcastTaskSubmitAsync(const Model::PodcastTaskSubmitRequest& request, const PodcastTaskSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
54+
PodcastTaskSubmitOutcomeCallable podcastTaskSubmitCallable(const Model::PodcastTaskSubmitRequest& request) const;
55+
56+
private:
57+
std::shared_ptr<EndpointProvider> endpointProvider_;
58+
};
59+
}
60+
}
61+
62+
#endif // !ALIBABACLOUD_AIPODCAST_AIPODCASTCLIENT_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_AIPODCAST_AIPODCASTEXPORT_H_
18+
#define ALIBABACLOUD_AIPODCAST_AIPODCASTEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_AIPODCAST_LIBRARY)
24+
# define ALIBABACLOUD_AIPODCAST_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_AIPODCAST_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_AIPODCAST_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_AIPODCAST_AIPODCASTEXPORT_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_H_
18+
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_H_
19+
20+
#include <alibabacloud/aipodcast/AIPodcastExport.h>
21+
#include <alibabacloud/core/RoaServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace AIPodcast {
28+
namespace Model {
29+
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskResultQueryRequest : public RoaServiceRequest {
30+
public:
31+
PodcastTaskResultQueryRequest();
32+
~PodcastTaskResultQueryRequest();
33+
std::string getAppId() const;
34+
void setAppId(const std::string &appId);
35+
std::string getTaskId() const;
36+
void setTaskId(const std::string &taskId);
37+
std::string getWorkspaceId() const;
38+
void setWorkspaceId(const std::string &workspaceId);
39+
40+
private:
41+
std::string appId_;
42+
std::string taskId_;
43+
std::string workspaceId_;
44+
};
45+
} // namespace Model
46+
} // namespace AIPodcast
47+
} // namespace AlibabaCloud
48+
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
18+
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/aipodcast/AIPodcastExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace AIPodcast
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskResultQueryResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
PodcastTaskResultQueryResult();
38+
explicit PodcastTaskResultQueryResult(const std::string &payload);
39+
~PodcastTaskResultQueryResult();
40+
41+
protected:
42+
void parse(const std::string &payload);
43+
private:
44+
45+
};
46+
}
47+
}
48+
}
49+
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_
18+
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_
19+
20+
#include <alibabacloud/aipodcast/AIPodcastExport.h>
21+
#include <alibabacloud/core/RoaServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace AIPodcast {
28+
namespace Model {
29+
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskSubmitRequest : public RoaServiceRequest {
30+
public:
31+
PodcastTaskSubmitRequest();
32+
~PodcastTaskSubmitRequest();
33+
std::string getAtmosphere() const;
34+
void setAtmosphere(const std::string &atmosphere);
35+
std::string getSourceLang() const;
36+
void setSourceLang(const std::string &sourceLang);
37+
int getCounts() const;
38+
void setCounts(int counts);
39+
std::vector<std::string> getFileUrls() const;
40+
void setFileUrls(const std::vector<std::string> &fileUrls);
41+
std::string getText() const;
42+
void setText(const std::string &text);
43+
std::vector<std::string> getVoices() const;
44+
void setVoices(const std::vector<std::string> &voices);
45+
std::string getAppId() const;
46+
void setAppId(const std::string &appId);
47+
std::string getTopic() const;
48+
void setTopic(const std::string &topic);
49+
std::string getStyle() const;
50+
void setStyle(const std::string &style);
51+
std::string getWorkspaceId() const;
52+
void setWorkspaceId(const std::string &workspaceId);
53+
54+
private:
55+
std::string atmosphere_;
56+
std::string sourceLang_;
57+
int counts_;
58+
std::vector<std::string> fileUrls_;
59+
std::string text_;
60+
std::vector<std::string> voices_;
61+
std::string appId_;
62+
std::string topic_;
63+
std::string style_;
64+
std::string workspaceId_;
65+
};
66+
} // namespace Model
67+
} // namespace AIPodcast
68+
} // namespace AlibabaCloud
69+
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_

0 commit comments

Comments
 (0)