Skip to content

Commit e2d298d

Browse files
committed
Generated 2024-02-22 for OssSddp.
1 parent ce74411 commit e2d298d

13 files changed

+682
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1988
1+
1.36.1989

osssddp/CMakeLists.txt

Lines changed: 90 additions & 0 deletions
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(osssddp_public_header
20+
include/alibabacloud/osssddp/OssSddpClient.h
21+
include/alibabacloud/osssddp/OssSddpExport.h )
22+
23+
set(osssddp_public_header_model
24+
include/alibabacloud/osssddp/model/GetSddpVersionRequest.h
25+
include/alibabacloud/osssddp/model/GetSddpVersionResult.h
26+
include/alibabacloud/osssddp/model/UpgradeSddpVersionRequest.h
27+
include/alibabacloud/osssddp/model/UpgradeSddpVersionResult.h )
28+
29+
set(osssddp_src
30+
src/OssSddpClient.cc
31+
src/model/GetSddpVersionRequest.cc
32+
src/model/GetSddpVersionResult.cc
33+
src/model/UpgradeSddpVersionRequest.cc
34+
src/model/UpgradeSddpVersionResult.cc )
35+
36+
add_library(osssddp ${LIB_TYPE}
37+
${osssddp_public_header}
38+
${osssddp_public_header_model}
39+
${osssddp_src})
40+
41+
set_target_properties(osssddp
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}osssddp
48+
)
49+
50+
if(${LIB_TYPE} STREQUAL "SHARED")
51+
set_target_properties(osssddp
52+
PROPERTIES
53+
DEFINE_SYMBOL ALIBABACLOUD_OSSSDDP_LIBRARY)
54+
endif()
55+
56+
target_include_directories(osssddp
57+
PRIVATE include
58+
${CMAKE_SOURCE_DIR}/core/include
59+
)
60+
target_link_libraries(osssddp
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(osssddp
67+
jsoncpp)
68+
target_include_directories(osssddp
69+
PRIVATE ${jsoncpp_install_dir}/include)
70+
target_link_libraries(osssddp
71+
${jsoncpp_install_dir}/lib/jsoncpp.lib)
72+
set_target_properties(osssddp
73+
PROPERTIES
74+
COMPILE_OPTIONS "/bigobj")
75+
else()
76+
target_include_directories(osssddp
77+
PRIVATE /usr/include/jsoncpp)
78+
target_link_libraries(osssddp
79+
jsoncpp)
80+
endif()
81+
82+
install(FILES ${osssddp_public_header}
83+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/osssddp)
84+
install(FILES ${osssddp_public_header_model}
85+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/osssddp/model)
86+
install(TARGETS osssddp
87+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
88+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
89+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
90+
)
Lines changed: 62 additions & 0 deletions
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_OSSSDDP_OSSSDDPCLIENT_H_
18+
#define ALIBABACLOUD_OSSSDDP_OSSSDDPCLIENT_H_
19+
20+
#include <future>
21+
#include <alibabacloud/core/AsyncCallerContext.h>
22+
#include <alibabacloud/core/EndpointProvider.h>
23+
#include <alibabacloud/core/RpcServiceClient.h>
24+
#include "OssSddpExport.h"
25+
#include "model/GetSddpVersionRequest.h"
26+
#include "model/GetSddpVersionResult.h"
27+
#include "model/UpgradeSddpVersionRequest.h"
28+
#include "model/UpgradeSddpVersionResult.h"
29+
30+
31+
namespace AlibabaCloud
32+
{
33+
namespace OssSddp
34+
{
35+
class ALIBABACLOUD_OSSSDDP_EXPORT OssSddpClient : public RpcServiceClient
36+
{
37+
public:
38+
typedef Outcome<Error, Model::GetSddpVersionResult> GetSddpVersionOutcome;
39+
typedef std::future<GetSddpVersionOutcome> GetSddpVersionOutcomeCallable;
40+
typedef std::function<void(const OssSddpClient*, const Model::GetSddpVersionRequest&, const GetSddpVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSddpVersionAsyncHandler;
41+
typedef Outcome<Error, Model::UpgradeSddpVersionResult> UpgradeSddpVersionOutcome;
42+
typedef std::future<UpgradeSddpVersionOutcome> UpgradeSddpVersionOutcomeCallable;
43+
typedef std::function<void(const OssSddpClient*, const Model::UpgradeSddpVersionRequest&, const UpgradeSddpVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeSddpVersionAsyncHandler;
44+
45+
OssSddpClient(const Credentials &credentials, const ClientConfiguration &configuration);
46+
OssSddpClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
47+
OssSddpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
48+
~OssSddpClient();
49+
GetSddpVersionOutcome getSddpVersion(const Model::GetSddpVersionRequest &request)const;
50+
void getSddpVersionAsync(const Model::GetSddpVersionRequest& request, const GetSddpVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
51+
GetSddpVersionOutcomeCallable getSddpVersionCallable(const Model::GetSddpVersionRequest& request) const;
52+
UpgradeSddpVersionOutcome upgradeSddpVersion(const Model::UpgradeSddpVersionRequest &request)const;
53+
void upgradeSddpVersionAsync(const Model::UpgradeSddpVersionRequest& request, const UpgradeSddpVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
54+
UpgradeSddpVersionOutcomeCallable upgradeSddpVersionCallable(const Model::UpgradeSddpVersionRequest& request) const;
55+
56+
private:
57+
std::shared_ptr<EndpointProvider> endpointProvider_;
58+
};
59+
}
60+
}
61+
62+
#endif // !ALIBABACLOUD_OSSSDDP_OSSSDDPCLIENT_H_
Lines changed: 32 additions & 0 deletions
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_OSSSDDP_OSSSDDPEXPORT_H_
18+
#define ALIBABACLOUD_OSSSDDP_OSSSDDPEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_OSSSDDP_LIBRARY)
24+
# define ALIBABACLOUD_OSSSDDP_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_OSSSDDP_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_OSSSDDP_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_OSSSDDP_OSSSDDPEXPORT_H_
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_
18+
#define ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_
19+
20+
#include <alibabacloud/osssddp/OssSddpExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace OssSddp {
28+
namespace Model {
29+
class ALIBABACLOUD_OSSSDDP_EXPORT GetSddpVersionRequest : public RpcServiceRequest {
30+
public:
31+
GetSddpVersionRequest();
32+
~GetSddpVersionRequest();
33+
std::string getClientToken() const;
34+
void setClientToken(const std::string &clientToken);
35+
36+
private:
37+
std::string clientToken_;
38+
};
39+
} // namespace Model
40+
} // namespace OssSddp
41+
} // namespace AlibabaCloud
42+
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_
18+
#define ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/osssddp/OssSddpExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace OssSddp
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_OSSSDDP_EXPORT GetSddpVersionResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
GetSddpVersionResult();
38+
explicit GetSddpVersionResult(const std::string &payload);
39+
~GetSddpVersionResult();
40+
int getContent()const;
41+
42+
protected:
43+
void parse(const std::string &payload);
44+
private:
45+
int content_;
46+
47+
};
48+
}
49+
}
50+
}
51+
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_
18+
#define ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_
19+
20+
#include <alibabacloud/osssddp/OssSddpExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace OssSddp {
28+
namespace Model {
29+
class ALIBABACLOUD_OSSSDDP_EXPORT UpgradeSddpVersionRequest : public RpcServiceRequest {
30+
public:
31+
UpgradeSddpVersionRequest();
32+
~UpgradeSddpVersionRequest();
33+
std::string getClientToken() const;
34+
void setClientToken(const std::string &clientToken);
35+
int getOssVersion() const;
36+
void setOssVersion(int ossVersion);
37+
38+
private:
39+
std::string clientToken_;
40+
int ossVersion_;
41+
};
42+
} // namespace Model
43+
} // namespace OssSddp
44+
} // namespace AlibabaCloud
45+
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_
18+
#define ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/osssddp/OssSddpExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace OssSddp
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_OSSSDDP_EXPORT UpgradeSddpVersionResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
UpgradeSddpVersionResult();
38+
explicit UpgradeSddpVersionResult(const std::string &payload);
39+
~UpgradeSddpVersionResult();
40+
std::string getContent()const;
41+
42+
protected:
43+
void parse(const std::string &payload);
44+
private:
45+
std::string content_;
46+
47+
};
48+
}
49+
}
50+
}
51+
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_

0 commit comments

Comments
 (0)