Generated 2024-02-22 for OssSddp.

This commit is contained in:
sdk-team
2024-09-24 03:29:18 +00:00
parent ce74411ad3
commit e2d298dba8
13 changed files with 682 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_OSSSDDPCLIENT_H_
#define ALIBABACLOUD_OSSSDDP_OSSSDDPCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "OssSddpExport.h"
#include "model/GetSddpVersionRequest.h"
#include "model/GetSddpVersionResult.h"
#include "model/UpgradeSddpVersionRequest.h"
#include "model/UpgradeSddpVersionResult.h"
namespace AlibabaCloud
{
namespace OssSddp
{
class ALIBABACLOUD_OSSSDDP_EXPORT OssSddpClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::GetSddpVersionResult> GetSddpVersionOutcome;
typedef std::future<GetSddpVersionOutcome> GetSddpVersionOutcomeCallable;
typedef std::function<void(const OssSddpClient*, const Model::GetSddpVersionRequest&, const GetSddpVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSddpVersionAsyncHandler;
typedef Outcome<Error, Model::UpgradeSddpVersionResult> UpgradeSddpVersionOutcome;
typedef std::future<UpgradeSddpVersionOutcome> UpgradeSddpVersionOutcomeCallable;
typedef std::function<void(const OssSddpClient*, const Model::UpgradeSddpVersionRequest&, const UpgradeSddpVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeSddpVersionAsyncHandler;
OssSddpClient(const Credentials &credentials, const ClientConfiguration &configuration);
OssSddpClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
OssSddpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~OssSddpClient();
GetSddpVersionOutcome getSddpVersion(const Model::GetSddpVersionRequest &request)const;
void getSddpVersionAsync(const Model::GetSddpVersionRequest& request, const GetSddpVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSddpVersionOutcomeCallable getSddpVersionCallable(const Model::GetSddpVersionRequest& request) const;
UpgradeSddpVersionOutcome upgradeSddpVersion(const Model::UpgradeSddpVersionRequest &request)const;
void upgradeSddpVersionAsync(const Model::UpgradeSddpVersionRequest& request, const UpgradeSddpVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpgradeSddpVersionOutcomeCallable upgradeSddpVersionCallable(const Model::UpgradeSddpVersionRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_OSSSDDP_OSSSDDPCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_OSSSDDPEXPORT_H_
#define ALIBABACLOUD_OSSSDDP_OSSSDDPEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_OSSSDDP_LIBRARY)
# define ALIBABACLOUD_OSSSDDP_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_OSSSDDP_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_OSSSDDP_EXPORT
#endif
#endif // !ALIBABACLOUD_OSSSDDP_OSSSDDPEXPORT_H_

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_
#define ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_
#include <alibabacloud/osssddp/OssSddpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace OssSddp {
namespace Model {
class ALIBABACLOUD_OSSSDDP_EXPORT GetSddpVersionRequest : public RpcServiceRequest {
public:
GetSddpVersionRequest();
~GetSddpVersionRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
private:
std::string clientToken_;
};
} // namespace Model
} // namespace OssSddp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_
#define ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/osssddp/OssSddpExport.h>
namespace AlibabaCloud
{
namespace OssSddp
{
namespace Model
{
class ALIBABACLOUD_OSSSDDP_EXPORT GetSddpVersionResult : public ServiceResult
{
public:
GetSddpVersionResult();
explicit GetSddpVersionResult(const std::string &payload);
~GetSddpVersionResult();
int getContent()const;
protected:
void parse(const std::string &payload);
private:
int content_;
};
}
}
}
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_GETSDDPVERSIONRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_
#define ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_
#include <alibabacloud/osssddp/OssSddpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace OssSddp {
namespace Model {
class ALIBABACLOUD_OSSSDDP_EXPORT UpgradeSddpVersionRequest : public RpcServiceRequest {
public:
UpgradeSddpVersionRequest();
~UpgradeSddpVersionRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
int getOssVersion() const;
void setOssVersion(int ossVersion);
private:
std::string clientToken_;
int ossVersion_;
};
} // namespace Model
} // namespace OssSddp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed 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.
*/
#ifndef ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_
#define ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/osssddp/OssSddpExport.h>
namespace AlibabaCloud
{
namespace OssSddp
{
namespace Model
{
class ALIBABACLOUD_OSSSDDP_EXPORT UpgradeSddpVersionResult : public ServiceResult
{
public:
UpgradeSddpVersionResult();
explicit UpgradeSddpVersionResult(const std::string &payload);
~UpgradeSddpVersionResult();
std::string getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string content_;
};
}
}
}
#endif // !ALIBABACLOUD_OSSSDDP_MODEL_UPGRADESDDPVERSIONRESULT_H_