Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
678893901f | ||
|
|
1bf5fe98af | ||
|
|
2173eb9110 | ||
|
|
045dcc9fa9 | ||
|
|
2fa7d5dc9f | ||
|
|
0a04d9d475 | ||
|
|
1193bcf394 | ||
|
|
c2ce4a0048 | ||
|
|
a63623d1a9 | ||
|
|
3edb319f4c | ||
|
|
61af8db794 | ||
|
|
1fda527d88 | ||
|
|
da6add49af | ||
|
|
9454f4754b | ||
|
|
861a684089 | ||
|
|
1ce36b8afa | ||
|
|
93808b764c | ||
|
|
22e4b5fbf4 | ||
|
|
90670a1866 | ||
|
|
cebe31f0f4 | ||
|
|
ebd79f50ff | ||
|
|
3495b8e165 | ||
|
|
5204a37d2a | ||
|
|
3efd03d181 | ||
|
|
86ad2c73a3 | ||
|
|
27c46edf5d |
@@ -39,8 +39,14 @@ set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/QueryRunningInstanceResult.h
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusRequest.h
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusResult.h
|
||||
include/alibabacloud/avatar/model/SendCommandRequest.h
|
||||
include/alibabacloud/avatar/model/SendCommandResult.h
|
||||
include/alibabacloud/avatar/model/SendMessageRequest.h
|
||||
include/alibabacloud/avatar/model/SendMessageResult.h
|
||||
include/alibabacloud/avatar/model/SendTextRequest.h
|
||||
include/alibabacloud/avatar/model/SendTextResult.h
|
||||
include/alibabacloud/avatar/model/SendVamlRequest.h
|
||||
include/alibabacloud/avatar/model/SendVamlResult.h
|
||||
include/alibabacloud/avatar/model/StartInstanceRequest.h
|
||||
include/alibabacloud/avatar/model/StartInstanceResult.h
|
||||
include/alibabacloud/avatar/model/StartTimedResetOperateRequest.h
|
||||
@@ -76,8 +82,14 @@ set(avatar_src
|
||||
src/model/QueryRunningInstanceResult.cc
|
||||
src/model/QueryTimedResetOperateStatusRequest.cc
|
||||
src/model/QueryTimedResetOperateStatusResult.cc
|
||||
src/model/SendCommandRequest.cc
|
||||
src/model/SendCommandResult.cc
|
||||
src/model/SendMessageRequest.cc
|
||||
src/model/SendMessageResult.cc
|
||||
src/model/SendTextRequest.cc
|
||||
src/model/SendTextResult.cc
|
||||
src/model/SendVamlRequest.cc
|
||||
src/model/SendVamlResult.cc
|
||||
src/model/StartInstanceRequest.cc
|
||||
src/model/StartInstanceResult.cc
|
||||
src/model/StartTimedResetOperateRequest.cc
|
||||
|
||||
@@ -40,8 +40,14 @@
|
||||
#include "model/QueryRunningInstanceResult.h"
|
||||
#include "model/QueryTimedResetOperateStatusRequest.h"
|
||||
#include "model/QueryTimedResetOperateStatusResult.h"
|
||||
#include "model/SendCommandRequest.h"
|
||||
#include "model/SendCommandResult.h"
|
||||
#include "model/SendMessageRequest.h"
|
||||
#include "model/SendMessageResult.h"
|
||||
#include "model/SendTextRequest.h"
|
||||
#include "model/SendTextResult.h"
|
||||
#include "model/SendVamlRequest.h"
|
||||
#include "model/SendVamlResult.h"
|
||||
#include "model/StartInstanceRequest.h"
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StartTimedResetOperateRequest.h"
|
||||
@@ -92,9 +98,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryTimedResetOperateStatusResult> QueryTimedResetOperateStatusOutcome;
|
||||
typedef std::future<QueryTimedResetOperateStatusOutcome> QueryTimedResetOperateStatusOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryTimedResetOperateStatusRequest&, const QueryTimedResetOperateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTimedResetOperateStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
|
||||
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendMessageResult> SendMessageOutcome;
|
||||
typedef std::future<SendMessageOutcome> SendMessageOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendMessageRequest&, const SendMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendTextResult> SendTextOutcome;
|
||||
typedef std::future<SendTextOutcome> SendTextOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendTextRequest&, const SendTextOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendTextAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendVamlResult> SendVamlOutcome;
|
||||
typedef std::future<SendVamlOutcome> SendVamlOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendVamlRequest&, const SendVamlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendVamlAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
|
||||
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
|
||||
@@ -148,9 +163,18 @@ namespace AlibabaCloud
|
||||
QueryTimedResetOperateStatusOutcome queryTimedResetOperateStatus(const Model::QueryTimedResetOperateStatusRequest &request)const;
|
||||
void queryTimedResetOperateStatusAsync(const Model::QueryTimedResetOperateStatusRequest& request, const QueryTimedResetOperateStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryTimedResetOperateStatusOutcomeCallable queryTimedResetOperateStatusCallable(const Model::QueryTimedResetOperateStatusRequest& request) const;
|
||||
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
|
||||
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;
|
||||
SendMessageOutcome sendMessage(const Model::SendMessageRequest &request)const;
|
||||
void sendMessageAsync(const Model::SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendMessageOutcomeCallable sendMessageCallable(const Model::SendMessageRequest& request) const;
|
||||
SendTextOutcome sendText(const Model::SendTextRequest &request)const;
|
||||
void sendTextAsync(const Model::SendTextRequest& request, const SendTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendTextOutcomeCallable sendTextCallable(const Model::SendTextRequest& request) const;
|
||||
SendVamlOutcome sendVaml(const Model::SendVamlRequest &request)const;
|
||||
void sendVamlAsync(const Model::SendVamlRequest& request, const SendVamlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendVamlOutcomeCallable sendVamlCallable(const Model::SendVamlRequest& request) const;
|
||||
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
|
||||
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_AVATAR_MODEL_SENDCOMMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendCommandRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SendCommandRequest();
|
||||
~SendCommandRequest();
|
||||
bool getFeedback() const;
|
||||
void setFeedback(bool feedback);
|
||||
std::string getCode() const;
|
||||
void setCode(const std::string &code);
|
||||
std::string getUniqueCode() const;
|
||||
void setUniqueCode(const std::string &uniqueCode);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::map<std::string, std::string> getContent() const;
|
||||
void setContent(const std::map<std::string, std::string> &content);
|
||||
|
||||
private:
|
||||
bool feedback_;
|
||||
std::string code_;
|
||||
std::string uniqueCode_;
|
||||
long tenantId_;
|
||||
std::string sessionId_;
|
||||
std::map<std::string, std::string> content_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDREQUEST_H_
|
||||
62
avatar/include/alibabacloud/avatar/model/SendCommandResult.h
Normal file
62
avatar/include/alibabacloud/avatar/model/SendCommandResult.h
Normal 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_AVATAR_MODEL_SENDCOMMANDRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendCommandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
SendCommandResult();
|
||||
explicit SendCommandResult(const std::string &payload);
|
||||
~SendCommandResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDRESULT_H_
|
||||
65
avatar/include/alibabacloud/avatar/model/SendTextRequest.h
Normal file
65
avatar/include/alibabacloud/avatar/model/SendTextRequest.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendTextRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct StreamExtension {
|
||||
bool isStream;
|
||||
int index;
|
||||
std::string position;
|
||||
};
|
||||
SendTextRequest();
|
||||
~SendTextRequest();
|
||||
bool getFeedback() const;
|
||||
void setFeedback(bool feedback);
|
||||
std::string getUniqueCode() const;
|
||||
void setUniqueCode(const std::string &uniqueCode);
|
||||
StreamExtension getStreamExtension() const;
|
||||
void setStreamExtension(const StreamExtension &streamExtension);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getInterrupt() const;
|
||||
void setInterrupt(bool interrupt);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
|
||||
private:
|
||||
bool feedback_;
|
||||
std::string uniqueCode_;
|
||||
StreamExtension streamExtension_;
|
||||
long tenantId_;
|
||||
bool interrupt_;
|
||||
std::string sessionId_;
|
||||
std::string text_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
62
avatar/include/alibabacloud/avatar/model/SendTextResult.h
Normal file
62
avatar/include/alibabacloud/avatar/model/SendTextResult.h
Normal 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_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendTextResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
SendTextResult();
|
||||
explicit SendTextResult(const std::string &payload);
|
||||
~SendTextResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
48
avatar/include/alibabacloud/avatar/model/SendVamlRequest.h
Normal file
48
avatar/include/alibabacloud/avatar/model/SendVamlRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_AVATAR_MODEL_SENDVAMLREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDVAMLREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendVamlRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SendVamlRequest();
|
||||
~SendVamlRequest();
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::string getVaml() const;
|
||||
void setVaml(const std::string &vaml);
|
||||
|
||||
private:
|
||||
long tenantId_;
|
||||
std::string sessionId_;
|
||||
std::string vaml_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDVAMLREQUEST_H_
|
||||
62
avatar/include/alibabacloud/avatar/model/SendVamlResult.h
Normal file
62
avatar/include/alibabacloud/avatar/model/SendVamlResult.h
Normal 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_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendVamlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
SendVamlResult();
|
||||
explicit SendVamlResult(const std::string &payload);
|
||||
~SendVamlResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
@@ -375,6 +375,42 @@ AvatarClient::QueryTimedResetOperateStatusOutcomeCallable AvatarClient::queryTim
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendCommandOutcome AvatarClient::sendCommand(const SendCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendCommandOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendCommandOutcome(SendCommandResult(outcome.result()));
|
||||
else
|
||||
return SendCommandOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendCommandAsync(const SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendCommand(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendCommandOutcomeCallable AvatarClient::sendCommandCallable(const SendCommandRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendCommandOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendCommand(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendMessageOutcome AvatarClient::sendMessage(const SendMessageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +447,78 @@ AvatarClient::SendMessageOutcomeCallable AvatarClient::sendMessageCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendTextOutcome AvatarClient::sendText(const SendTextRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendTextOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendTextOutcome(SendTextResult(outcome.result()));
|
||||
else
|
||||
return SendTextOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendTextAsync(const SendTextRequest& request, const SendTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendText(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendTextOutcomeCallable AvatarClient::sendTextCallable(const SendTextRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendTextOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendText(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendVamlOutcome AvatarClient::sendVaml(const SendVamlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendVamlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendVamlOutcome(SendVamlResult(outcome.result()));
|
||||
else
|
||||
return SendVamlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendVamlAsync(const SendVamlRequest& request, const SendVamlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendVaml(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendVamlOutcomeCallable AvatarClient::sendVamlCallable(const SendVamlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendVamlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendVaml(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::StartInstanceOutcome AvatarClient::startInstance(const StartInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
83
avatar/src/model/SendCommandRequest.cc
Normal file
83
avatar/src/model/SendCommandRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendCommandRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendCommandRequest;
|
||||
|
||||
SendCommandRequest::SendCommandRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendCommand") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendCommandRequest::~SendCommandRequest() {}
|
||||
|
||||
bool SendCommandRequest::getFeedback() const {
|
||||
return feedback_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setFeedback(bool feedback) {
|
||||
feedback_ = feedback;
|
||||
setParameter(std::string("Feedback"), feedback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getCode() const {
|
||||
return code_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setCode(const std::string &code) {
|
||||
code_ = code;
|
||||
setParameter(std::string("Code"), code);
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getUniqueCode() const {
|
||||
return uniqueCode_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setUniqueCode(const std::string &uniqueCode) {
|
||||
uniqueCode_ = uniqueCode;
|
||||
setParameter(std::string("UniqueCode"), uniqueCode);
|
||||
}
|
||||
|
||||
long SendCommandRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> SendCommandRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setContent(const std::map<std::string, std::string> &content) {
|
||||
content_ = content;
|
||||
for(auto const &iter1 : content) {
|
||||
setParameter(std::string("Content") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
75
avatar/src/model/SendCommandResult.cc
Normal file
75
avatar/src/model/SendCommandResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendCommandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SendCommandResult::SendCommandResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendCommandResult::SendCommandResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendCommandResult::~SendCommandResult()
|
||||
{}
|
||||
|
||||
void SendCommandResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SendCommandResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SendCommandResult::Data SendCommandResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SendCommandResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendCommandResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
92
avatar/src/model/SendTextRequest.cc
Normal file
92
avatar/src/model/SendTextRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendTextRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendTextRequest;
|
||||
|
||||
SendTextRequest::SendTextRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendText") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendTextRequest::~SendTextRequest() {}
|
||||
|
||||
bool SendTextRequest::getFeedback() const {
|
||||
return feedback_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setFeedback(bool feedback) {
|
||||
feedback_ = feedback;
|
||||
setParameter(std::string("Feedback"), feedback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getUniqueCode() const {
|
||||
return uniqueCode_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setUniqueCode(const std::string &uniqueCode) {
|
||||
uniqueCode_ = uniqueCode;
|
||||
setParameter(std::string("UniqueCode"), uniqueCode);
|
||||
}
|
||||
|
||||
SendTextRequest::StreamExtension SendTextRequest::getStreamExtension() const {
|
||||
return streamExtension_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setStreamExtension(const SendTextRequest::StreamExtension &streamExtension) {
|
||||
streamExtension_ = streamExtension;
|
||||
setParameter(std::string("StreamExtension") + ".IsStream", streamExtension.isStream ? "true" : "false");
|
||||
setParameter(std::string("StreamExtension") + ".Index", std::to_string(streamExtension.index));
|
||||
setParameter(std::string("StreamExtension") + ".Position", streamExtension.position);
|
||||
}
|
||||
|
||||
long SendTextRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SendTextRequest::getInterrupt() const {
|
||||
return interrupt_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setInterrupt(bool interrupt) {
|
||||
interrupt_ = interrupt;
|
||||
setParameter(std::string("Interrupt"), interrupt ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setText(const std::string &text) {
|
||||
text_ = text;
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
75
avatar/src/model/SendTextResult.cc
Normal file
75
avatar/src/model/SendTextResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendTextResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SendTextResult::SendTextResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendTextResult::SendTextResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendTextResult::~SendTextResult()
|
||||
{}
|
||||
|
||||
void SendTextResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SendTextResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SendTextResult::Data SendTextResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SendTextResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendTextResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
avatar/src/model/SendVamlRequest.cc
Normal file
54
avatar/src/model/SendVamlRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendVamlRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendVamlRequest;
|
||||
|
||||
SendVamlRequest::SendVamlRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendVaml") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendVamlRequest::~SendVamlRequest() {}
|
||||
|
||||
long SendVamlRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SendVamlRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::string SendVamlRequest::getVaml() const {
|
||||
return vaml_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setVaml(const std::string &vaml) {
|
||||
vaml_ = vaml;
|
||||
setParameter(std::string("Vaml"), vaml);
|
||||
}
|
||||
|
||||
75
avatar/src/model/SendVamlResult.cc
Normal file
75
avatar/src/model/SendVamlResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendVamlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SendVamlResult::SendVamlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendVamlResult::SendVamlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendVamlResult::~SendVamlResult()
|
||||
{}
|
||||
|
||||
void SendVamlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SendVamlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SendVamlResult::Data SendVamlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SendVamlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendVamlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
void setCenId(const std::string &cenId);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getTrRegionId() const;
|
||||
void setTrRegionId(const std::string &trRegionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -51,6 +53,7 @@ private:
|
||||
long resourceOwnerId_;
|
||||
std::string cenId_;
|
||||
int pageNumber_;
|
||||
std::string trRegionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -41,8 +41,10 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string status;
|
||||
std::string transitRouterMulticastDomainId;
|
||||
std::string cenId;
|
||||
std::string transitRouterMulticastDomainName;
|
||||
std::string transitRouterMulticastDomainDescription;
|
||||
std::string regionId;
|
||||
std::vector<TransitRouterMulticastDomain::Tag> tags;
|
||||
std::string transitRouterId;
|
||||
};
|
||||
|
||||
@@ -34,10 +34,21 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct TransitRouterRouteEntry
|
||||
{
|
||||
struct PathAttributes
|
||||
{
|
||||
std::string originRouteType;
|
||||
int preference;
|
||||
std::string originInstanceType;
|
||||
std::string originInstanceId;
|
||||
std::vector<std::string> communities1;
|
||||
std::vector<std::string> asPaths2;
|
||||
};
|
||||
std::string transitRouterRouteEntryOriginResourceType;
|
||||
std::string transitRouterRouteEntryNextHopId;
|
||||
std::string transitRouterRouteEntryOriginResourceId;
|
||||
std::string prefixListId;
|
||||
std::vector<std::string> communities;
|
||||
PathAttributes pathAttributes;
|
||||
std::string createTime;
|
||||
std::string transitRouterRouteEntryNextHopType;
|
||||
bool operationalMode;
|
||||
@@ -45,9 +56,11 @@ namespace AlibabaCloud
|
||||
std::string transitRouterRouteEntryNextHopResourceId;
|
||||
std::string transitRouterRouteEntryNextHopResourceType;
|
||||
std::string transitRouterRouteEntryType;
|
||||
int preference;
|
||||
std::string transitRouterRouteEntryDescription;
|
||||
std::string transitRouterRouteEntryName;
|
||||
std::string tag;
|
||||
std::vector<std::string> asPaths;
|
||||
std::string transitRouterRouteEntryId;
|
||||
std::string transitRouterRouteEntryStatus;
|
||||
};
|
||||
|
||||
@@ -52,6 +52,15 @@ void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber)
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getTrRegionId() const {
|
||||
return trRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setTrRegionId(const std::string &trRegionId) {
|
||||
trRegionId_ = trRegionId;
|
||||
setParameter(std::string("TrRegionId"), trRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,10 @@ void ListTransitRouterMulticastDomainsResult::parse(const std::string &payload)
|
||||
transitRouterMulticastDomainsObject.status = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Status"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["TransitRouterId"].isNull())
|
||||
transitRouterMulticastDomainsObject.transitRouterId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["TransitRouterId"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["RegionId"].isNull())
|
||||
transitRouterMulticastDomainsObject.regionId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["RegionId"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["CenId"].isNull())
|
||||
transitRouterMulticastDomainsObject.cenId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["CenId"].asString();
|
||||
auto allTagsNode = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -75,6 +75,29 @@ void ListTransitRouterRouteEntriesResult::parse(const std::string &payload)
|
||||
transitRouterRouteEntriesObject.transitRouterRouteEntryOriginResourceId = valueTransitRouterRouteEntriesTransitRouterRouteEntry["TransitRouterRouteEntryOriginResourceId"].asString();
|
||||
if(!valueTransitRouterRouteEntriesTransitRouterRouteEntry["PrefixListId"].isNull())
|
||||
transitRouterRouteEntriesObject.prefixListId = valueTransitRouterRouteEntriesTransitRouterRouteEntry["PrefixListId"].asString();
|
||||
if(!valueTransitRouterRouteEntriesTransitRouterRouteEntry["Preference"].isNull())
|
||||
transitRouterRouteEntriesObject.preference = std::stoi(valueTransitRouterRouteEntriesTransitRouterRouteEntry["Preference"].asString());
|
||||
auto pathAttributesNode = value["PathAttributes"];
|
||||
if(!pathAttributesNode["OriginInstanceId"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originInstanceId = pathAttributesNode["OriginInstanceId"].asString();
|
||||
if(!pathAttributesNode["OriginInstanceType"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originInstanceType = pathAttributesNode["OriginInstanceType"].asString();
|
||||
if(!pathAttributesNode["OriginRouteType"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originRouteType = pathAttributesNode["OriginRouteType"].asString();
|
||||
if(!pathAttributesNode["Preference"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.preference = std::stoi(pathAttributesNode["Preference"].asString());
|
||||
auto allCommunities1 = pathAttributesNode["Communities"]["Community"];
|
||||
for (auto value : allCommunities1)
|
||||
transitRouterRouteEntriesObject.pathAttributes.communities1.push_back(value.asString());
|
||||
auto allAsPaths2 = pathAttributesNode["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths2)
|
||||
transitRouterRouteEntriesObject.pathAttributes.asPaths2.push_back(value.asString());
|
||||
auto allCommunities = value["Communities"]["Community"];
|
||||
for (auto value : allCommunities)
|
||||
transitRouterRouteEntriesObject.communities.push_back(value.asString());
|
||||
auto allAsPaths = value["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths)
|
||||
transitRouterRouteEntriesObject.asPaths.push_back(value.asString());
|
||||
transitRouterRouteEntries_.push_back(transitRouterRouteEntriesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -89,6 +89,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/CreateQualityRuleResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateRemindRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateRemindResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateResourceFileRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateResourceFileResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableLevelRequest.h
|
||||
@@ -604,6 +606,8 @@ set(dataworks-public_src
|
||||
src/model/CreateQualityRuleResult.cc
|
||||
src/model/CreateRemindRequest.cc
|
||||
src/model/CreateRemindResult.cc
|
||||
src/model/CreateResourceFileRequest.cc
|
||||
src/model/CreateResourceFileResult.cc
|
||||
src/model/CreateTableRequest.cc
|
||||
src/model/CreateTableResult.cc
|
||||
src/model/CreateTableLevelRequest.cc
|
||||
|
||||
@@ -90,6 +90,8 @@
|
||||
#include "model/CreateQualityRuleResult.h"
|
||||
#include "model/CreateRemindRequest.h"
|
||||
#include "model/CreateRemindResult.h"
|
||||
#include "model/CreateResourceFileRequest.h"
|
||||
#include "model/CreateResourceFileResult.h"
|
||||
#include "model/CreateTableRequest.h"
|
||||
#include "model/CreateTableResult.h"
|
||||
#include "model/CreateTableLevelRequest.h"
|
||||
@@ -645,6 +647,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateRemindResult> CreateRemindOutcome;
|
||||
typedef std::future<CreateRemindOutcome> CreateRemindOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateRemindRequest&, const CreateRemindOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRemindAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourceFileResult> CreateResourceFileOutcome;
|
||||
typedef std::future<CreateResourceFileOutcome> CreateResourceFileOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateResourceFileRequest&, const CreateResourceFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTableResult> CreateTableOutcome;
|
||||
typedef std::future<CreateTableOutcome> CreateTableOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateTableRequest&, const CreateTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTableAsyncHandler;
|
||||
@@ -1418,6 +1423,9 @@ namespace AlibabaCloud
|
||||
CreateRemindOutcome createRemind(const Model::CreateRemindRequest &request)const;
|
||||
void createRemindAsync(const Model::CreateRemindRequest& request, const CreateRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRemindOutcomeCallable createRemindCallable(const Model::CreateRemindRequest& request) const;
|
||||
CreateResourceFileOutcome createResourceFile(const Model::CreateResourceFileRequest &request)const;
|
||||
void createResourceFileAsync(const Model::CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourceFileOutcomeCallable createResourceFileCallable(const Model::CreateResourceFileRequest& request) const;
|
||||
CreateTableOutcome createTable(const Model::CreateTableRequest &request)const;
|
||||
void createTableAsync(const Model::CreateTableRequest& request, const CreateTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTableOutcomeCallable createTableCallable(const Model::CreateTableRequest& request) const;
|
||||
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
void setAutoRerunIntervalMillis(int autoRerunIntervalMillis);
|
||||
std::string getInputList() const;
|
||||
void setInputList(const std::string &inputList);
|
||||
bool getCreateFolderIfNotExists() const;
|
||||
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
|
||||
std::string getRerunMode() const;
|
||||
void setRerunMode(const std::string &rerunMode);
|
||||
std::string getConnectionName() const;
|
||||
@@ -105,6 +107,7 @@ private:
|
||||
std::string owner_;
|
||||
int autoRerunIntervalMillis_;
|
||||
std::string inputList_;
|
||||
bool createFolderIfNotExists_;
|
||||
std::string rerunMode_;
|
||||
std::string connectionName_;
|
||||
std::string outputParameters_;
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateResourceFileRequest();
|
||||
~CreateResourceFileRequest();
|
||||
int getFileType() const;
|
||||
void setFileType(int fileType);
|
||||
std::string getContent() const;
|
||||
void setContent(const std::string &content);
|
||||
std::string getResourceFile() const;
|
||||
void setResourceFile(const std::string &resourceFile);
|
||||
std::string getOriginResourceName() const;
|
||||
void setOriginResourceName(const std::string &originResourceName);
|
||||
long getProjectId() const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getStorageURL() const;
|
||||
void setStorageURL(const std::string &storageURL);
|
||||
std::string getOwner() const;
|
||||
void setOwner(const std::string &owner);
|
||||
bool getRegisterToCalcEngine() const;
|
||||
void setRegisterToCalcEngine(bool registerToCalcEngine);
|
||||
bool getUploadMode() const;
|
||||
void setUploadMode(bool uploadMode);
|
||||
std::string getFileName() const;
|
||||
void setFileName(const std::string &fileName);
|
||||
std::string getFileFolderPath() const;
|
||||
void setFileFolderPath(const std::string &fileFolderPath);
|
||||
std::string getFileDescription() const;
|
||||
void setFileDescription(const std::string &fileDescription);
|
||||
|
||||
private:
|
||||
int fileType_;
|
||||
std::string content_;
|
||||
std::string resourceFile_;
|
||||
std::string originResourceName_;
|
||||
long projectId_;
|
||||
std::string storageURL_;
|
||||
std::string owner_;
|
||||
bool registerToCalcEngine_;
|
||||
bool uploadMode_;
|
||||
std::string fileName_;
|
||||
std::string fileFolderPath_;
|
||||
std::string fileDescription_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
|
||||
@@ -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_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateResourceFileResult();
|
||||
explicit CreateResourceFileResult(const std::string &payload);
|
||||
~CreateResourceFileResult();
|
||||
long getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateUdfFileRequest : public RpcServ
|
||||
public:
|
||||
CreateUdfFileRequest();
|
||||
~CreateUdfFileRequest();
|
||||
bool getCreateFolderIfNotExists() const;
|
||||
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
|
||||
std::string getReturnValue() const;
|
||||
void setReturnValue(const std::string &returnValue);
|
||||
std::string getResources() const;
|
||||
@@ -56,6 +58,7 @@ public:
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
bool createFolderIfNotExists_;
|
||||
std::string returnValue_;
|
||||
std::string resources_;
|
||||
std::string functionType_;
|
||||
|
||||
@@ -34,14 +34,22 @@ public:
|
||||
void setOwner(const std::string &owner);
|
||||
std::string getFileTypes() const;
|
||||
void setFileTypes(const std::string &fileTypes);
|
||||
bool getNeedContent() const;
|
||||
void setNeedContent(bool needContent);
|
||||
bool getNeedAbsoluteFolderPath() const;
|
||||
void setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath);
|
||||
std::string getProjectIdentifier() const;
|
||||
void setProjectIdentifier(const std::string &projectIdentifier);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getFileIdIn() const;
|
||||
void setFileIdIn(const std::string &fileIdIn);
|
||||
std::string getFileFolderPath() const;
|
||||
void setFileFolderPath(const std::string &fileFolderPath);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getExactFileName() const;
|
||||
void setExactFileName(const std::string &exactFileName);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
long getProjectId() const;
|
||||
@@ -54,10 +62,14 @@ public:
|
||||
private:
|
||||
std::string owner_;
|
||||
std::string fileTypes_;
|
||||
bool needContent_;
|
||||
bool needAbsoluteFolderPath_;
|
||||
std::string projectIdentifier_;
|
||||
int pageNumber_;
|
||||
std::string fileIdIn_;
|
||||
std::string fileFolderPath_;
|
||||
int pageSize_;
|
||||
std::string exactFileName_;
|
||||
std::string keyword_;
|
||||
long projectId_;
|
||||
std::string useType_;
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
int fileType;
|
||||
std::string lastEditUser;
|
||||
std::string content;
|
||||
std::string absoluteFolderPath;
|
||||
int commitStatus;
|
||||
long nodeId;
|
||||
bool autoParsing;
|
||||
|
||||
@@ -1275,6 +1275,42 @@ Dataworks_publicClient::CreateRemindOutcomeCallable Dataworks_publicClient::crea
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateResourceFileOutcome Dataworks_publicClient::createResourceFile(const CreateResourceFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateResourceFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateResourceFileOutcome(CreateResourceFileResult(outcome.result()));
|
||||
else
|
||||
return CreateResourceFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::createResourceFileAsync(const CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createResourceFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateResourceFileOutcomeCallable Dataworks_publicClient::createResourceFileCallable(const CreateResourceFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateResourceFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createResourceFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateTableOutcome Dataworks_publicClient::createTable(const CreateTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -142,6 +142,15 @@ void CreateFileRequest::setInputList(const std::string &inputList) {
|
||||
setBodyParameter(std::string("InputList"), inputList);
|
||||
}
|
||||
|
||||
bool CreateFileRequest::getCreateFolderIfNotExists() const {
|
||||
return createFolderIfNotExists_;
|
||||
}
|
||||
|
||||
void CreateFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
|
||||
createFolderIfNotExists_ = createFolderIfNotExists;
|
||||
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFileRequest::getRerunMode() const {
|
||||
return rerunMode_;
|
||||
}
|
||||
|
||||
135
dataworks-public/src/model/CreateResourceFileRequest.cc
Normal file
135
dataworks-public/src/model/CreateResourceFileRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateResourceFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateResourceFileRequest;
|
||||
|
||||
CreateResourceFileRequest::CreateResourceFileRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "CreateResourceFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceFileRequest::~CreateResourceFileRequest() {}
|
||||
|
||||
int CreateResourceFileRequest::getFileType() const {
|
||||
return fileType_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileType(int fileType) {
|
||||
fileType_ = fileType;
|
||||
setBodyParameter(std::string("FileType"), std::to_string(fileType));
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getResourceFile() const {
|
||||
return resourceFile_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setResourceFile(const std::string &resourceFile) {
|
||||
resourceFile_ = resourceFile;
|
||||
setBodyParameter(std::string("ResourceFile"), resourceFile);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getOriginResourceName() const {
|
||||
return originResourceName_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setOriginResourceName(const std::string &originResourceName) {
|
||||
originResourceName_ = originResourceName;
|
||||
setBodyParameter(std::string("OriginResourceName"), originResourceName);
|
||||
}
|
||||
|
||||
long CreateResourceFileRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setProjectId(long projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getStorageURL() const {
|
||||
return storageURL_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setStorageURL(const std::string &storageURL) {
|
||||
storageURL_ = storageURL;
|
||||
setBodyParameter(std::string("StorageURL"), storageURL);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getOwner() const {
|
||||
return owner_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setOwner(const std::string &owner) {
|
||||
owner_ = owner;
|
||||
setBodyParameter(std::string("Owner"), owner);
|
||||
}
|
||||
|
||||
bool CreateResourceFileRequest::getRegisterToCalcEngine() const {
|
||||
return registerToCalcEngine_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setRegisterToCalcEngine(bool registerToCalcEngine) {
|
||||
registerToCalcEngine_ = registerToCalcEngine;
|
||||
setBodyParameter(std::string("RegisterToCalcEngine"), registerToCalcEngine ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateResourceFileRequest::getUploadMode() const {
|
||||
return uploadMode_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setUploadMode(bool uploadMode) {
|
||||
uploadMode_ = uploadMode;
|
||||
setBodyParameter(std::string("UploadMode"), uploadMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setBodyParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileFolderPath() const {
|
||||
return fileFolderPath_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileFolderPath(const std::string &fileFolderPath) {
|
||||
fileFolderPath_ = fileFolderPath;
|
||||
setBodyParameter(std::string("FileFolderPath"), fileFolderPath);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileDescription() const {
|
||||
return fileDescription_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileDescription(const std::string &fileDescription) {
|
||||
fileDescription_ = fileDescription;
|
||||
setBodyParameter(std::string("FileDescription"), fileDescription);
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/CreateResourceFileResult.cc
Normal file
51
dataworks-public/src/model/CreateResourceFileResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateResourceFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateResourceFileResult::CreateResourceFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceFileResult::CreateResourceFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceFileResult::~CreateResourceFileResult()
|
||||
{}
|
||||
|
||||
void CreateResourceFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateResourceFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateUdfFileRequest::CreateUdfFileRequest()
|
||||
|
||||
CreateUdfFileRequest::~CreateUdfFileRequest() {}
|
||||
|
||||
bool CreateUdfFileRequest::getCreateFolderIfNotExists() const {
|
||||
return createFolderIfNotExists_;
|
||||
}
|
||||
|
||||
void CreateUdfFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
|
||||
createFolderIfNotExists_ = createFolderIfNotExists;
|
||||
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUdfFileRequest::getReturnValue() const {
|
||||
return returnValue_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,24 @@ void ListFilesRequest::setFileTypes(const std::string &fileTypes) {
|
||||
setBodyParameter(std::string("FileTypes"), fileTypes);
|
||||
}
|
||||
|
||||
bool ListFilesRequest::getNeedContent() const {
|
||||
return needContent_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setNeedContent(bool needContent) {
|
||||
needContent_ = needContent;
|
||||
setBodyParameter(std::string("NeedContent"), needContent ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ListFilesRequest::getNeedAbsoluteFolderPath() const {
|
||||
return needAbsoluteFolderPath_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath) {
|
||||
needAbsoluteFolderPath_ = needAbsoluteFolderPath;
|
||||
setBodyParameter(std::string("NeedAbsoluteFolderPath"), needAbsoluteFolderPath ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getProjectIdentifier() const {
|
||||
return projectIdentifier_;
|
||||
}
|
||||
@@ -61,6 +79,15 @@ void ListFilesRequest::setPageNumber(int pageNumber) {
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getFileIdIn() const {
|
||||
return fileIdIn_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setFileIdIn(const std::string &fileIdIn) {
|
||||
fileIdIn_ = fileIdIn;
|
||||
setBodyParameter(std::string("FileIdIn"), fileIdIn);
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getFileFolderPath() const {
|
||||
return fileFolderPath_;
|
||||
}
|
||||
@@ -79,6 +106,15 @@ void ListFilesRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getExactFileName() const {
|
||||
return exactFileName_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setExactFileName(const std::string &exactFileName) {
|
||||
exactFileName_ = exactFileName;
|
||||
setBodyParameter(std::string("ExactFileName"), exactFileName);
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,8 @@ void ListFilesResult::parse(const std::string &payload)
|
||||
fileObject.content = dataNodeFilesFile["Content"].asString();
|
||||
if(!dataNodeFilesFile["NodeId"].isNull())
|
||||
fileObject.nodeId = std::stol(dataNodeFilesFile["NodeId"].asString());
|
||||
if(!dataNodeFilesFile["AbsoluteFolderPath"].isNull())
|
||||
fileObject.absoluteFolderPath = dataNodeFilesFile["AbsoluteFolderPath"].asString();
|
||||
data_.files.push_back(fileObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -30,22 +30,10 @@ class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequ
|
||||
public:
|
||||
ConfigureBackupPlanRequest();
|
||||
~ConfigureBackupPlanRequest();
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
long getBackupGatewayId() const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getSourceEndpointUserName() const;
|
||||
void setSourceEndpointUserName(const std::string &sourceEndpointUserName);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getBackupStartTime() const;
|
||||
@@ -54,28 +42,18 @@ public:
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getCrossRoleName() const;
|
||||
void setCrossRoleName(const std::string &crossRoleName);
|
||||
bool getEnableBackupLog() const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
std::string getBackupStorageType() const;
|
||||
void setBackupStorageType(const std::string &backupStorageType);
|
||||
int getDuplicationArchivePeriod() const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
int getBackupLogIntervalSeconds() const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
bool getAutoStartBackup() const;
|
||||
void setAutoStartBackup(bool autoStartBackup);
|
||||
std::string getSourceEndpointPassword() const;
|
||||
void setSourceEndpointPassword(const std::string &sourceEndpointPassword);
|
||||
std::string getBackupObjects() const;
|
||||
void setBackupObjects(const std::string &backupObjects);
|
||||
long getBackupRateLimit() const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
int getBackupRetentionPeriod() const;
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
std::string getBackupPeriod() const;
|
||||
@@ -86,44 +64,66 @@ public:
|
||||
void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType);
|
||||
std::string getBackupPlanName() const;
|
||||
void setBackupPlanName(const std::string &backupPlanName);
|
||||
std::string getSourceEndpointOracleSID() const;
|
||||
void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID);
|
||||
std::string getOSSBucketName() const;
|
||||
void setOSSBucketName(const std::string &oSSBucketName);
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
bool getEnableBackupLog() const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getBackupObjects() const;
|
||||
void setBackupObjects(const std::string &backupObjects);
|
||||
long getBackupRateLimit() const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
std::string getSourceEndpointOracleSID() const;
|
||||
void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID);
|
||||
std::string getBackupStrategyType() const;
|
||||
void setBackupStrategyType(const std::string &backupStrategyType);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
long backupGatewayId_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
std::string resourceGroupId_;
|
||||
std::string backupStartTime_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string crossRoleName_;
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string crossAliyunId_;
|
||||
bool autoStartBackup_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
int backupRetentionPeriod_;
|
||||
std::string backupPeriod_;
|
||||
long backupSpeedLimit_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string backupPlanName_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string oSSBucketName_;
|
||||
std::string sourceEndpointRegion_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
bool enableBackupLog_;
|
||||
std::string crossAliyunId_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
int sourceEndpointPort_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string backupStrategyType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,18 +32,18 @@ public:
|
||||
~CreateFullBackupSetDownloadRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDataFormat_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -38,21 +38,21 @@ public:
|
||||
void setDatabaseType(const std::string &databaseType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
long backupGatewayId_;
|
||||
std::string databaseType_;
|
||||
std::string clientToken_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
std::string sourceEndpointIP_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -32,21 +32,21 @@ public:
|
||||
~CreateIncrementBackupSetDownloadRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
std::string getBackupSetName() const;
|
||||
void setBackupSetName(const std::string &backupSetName);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDataFormat_;
|
||||
std::string backupSetName_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -32,32 +32,14 @@ public:
|
||||
~CreateRestoreTaskRequest();
|
||||
long getBackupGatewayId() const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getDestinationEndpointInstanceType() const;
|
||||
void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getDestinationEndpointRegion() const;
|
||||
void setDestinationEndpointRegion(const std::string &destinationEndpointRegion);
|
||||
std::string getCrossRoleName() const;
|
||||
void setCrossRoleName(const std::string &crossRoleName);
|
||||
std::string getDestinationEndpointUserName() const;
|
||||
void setDestinationEndpointUserName(const std::string &destinationEndpointUserName);
|
||||
std::string getRestoreObjects() const;
|
||||
void setRestoreObjects(const std::string &restoreObjects);
|
||||
std::string getRestoreTaskName() const;
|
||||
void setRestoreTaskName(const std::string &restoreTaskName);
|
||||
std::string getRestoreHome() const;
|
||||
void setRestoreHome(const std::string &restoreHome);
|
||||
std::string getDestinationEndpointOracleSID() const;
|
||||
void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID);
|
||||
long getRestoreTime() const;
|
||||
void setRestoreTime(long restoreTime);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getDestinationEndpointInstanceID() const;
|
||||
void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID);
|
||||
int getDestinationEndpointPort() const;
|
||||
void setDestinationEndpointPort(int destinationEndpointPort);
|
||||
std::string getBackupSetId() const;
|
||||
@@ -68,35 +50,53 @@ public:
|
||||
void setRestoreDir(const std::string &restoreDir);
|
||||
std::string getDestinationEndpointIP() const;
|
||||
void setDestinationEndpointIP(const std::string &destinationEndpointIP);
|
||||
std::string getDestinationEndpointDatabaseName() const;
|
||||
void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName);
|
||||
std::string getDuplicateConflict() const;
|
||||
void setDuplicateConflict(const std::string &duplicateConflict);
|
||||
std::string getDestinationEndpointInstanceType() const;
|
||||
void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getDestinationEndpointRegion() const;
|
||||
void setDestinationEndpointRegion(const std::string &destinationEndpointRegion);
|
||||
std::string getRestoreObjects() const;
|
||||
void setRestoreObjects(const std::string &restoreObjects);
|
||||
std::string getRestoreHome() const;
|
||||
void setRestoreHome(const std::string &restoreHome);
|
||||
long getRestoreTime() const;
|
||||
void setRestoreTime(long restoreTime);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getDestinationEndpointInstanceID() const;
|
||||
void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID);
|
||||
std::string getDestinationEndpointDatabaseName() const;
|
||||
void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName);
|
||||
std::string getDestinationEndpointPassword() const;
|
||||
void setDestinationEndpointPassword(const std::string &destinationEndpointPassword);
|
||||
|
||||
private:
|
||||
long backupGatewayId_;
|
||||
std::string destinationEndpointInstanceType_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string destinationEndpointRegion_;
|
||||
std::string crossRoleName_;
|
||||
std::string destinationEndpointUserName_;
|
||||
std::string restoreObjects_;
|
||||
std::string restoreTaskName_;
|
||||
std::string restoreHome_;
|
||||
std::string destinationEndpointOracleSID_;
|
||||
long restoreTime_;
|
||||
std::string crossAliyunId_;
|
||||
std::string destinationEndpointInstanceID_;
|
||||
int destinationEndpointPort_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string restoreDir_;
|
||||
std::string destinationEndpointIP_;
|
||||
std::string destinationEndpointDatabaseName_;
|
||||
std::string duplicateConflict_;
|
||||
std::string destinationEndpointInstanceType_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string destinationEndpointRegion_;
|
||||
std::string restoreObjects_;
|
||||
std::string restoreHome_;
|
||||
long restoreTime_;
|
||||
std::string crossAliyunId_;
|
||||
std::string destinationEndpointInstanceID_;
|
||||
std::string destinationEndpointDatabaseName_;
|
||||
std::string destinationEndpointPassword_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,25 +30,25 @@ class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServi
|
||||
public:
|
||||
DescribeBackupGatewayListRequest();
|
||||
~DescribeBackupGatewayListRequest();
|
||||
std::string getIdentifier() const;
|
||||
void setIdentifier(const std::string &identifier);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getIdentifier() const;
|
||||
void setIdentifier(const std::string &identifier);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getRegion() const;
|
||||
void setRegion(const std::string ®ion);
|
||||
|
||||
private:
|
||||
std::string identifier_;
|
||||
std::string clientToken_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
int pageSize_;
|
||||
std::string identifier_;
|
||||
std::string ownerId_;
|
||||
std::string region_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
bool getShowStorageType() const;
|
||||
void setShowStorageType(bool showStorageType);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool showStorageType_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isExpired;
|
||||
long buyExpiredTimestamp;
|
||||
std::string resourceGroupId;
|
||||
long quotaStartTimestamp;
|
||||
long totalFreeBytes;
|
||||
long paiedBytes;
|
||||
|
||||
@@ -36,16 +36,16 @@ public:
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getBackupPlanStatus() const;
|
||||
void setBackupPlanStatus(const std::string &backupPlanStatus);
|
||||
std::string getBackupPlanName() const;
|
||||
void setBackupPlanName(const std::string &backupPlanName);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupPlanName() const;
|
||||
void setBackupPlanName(const std::string &backupPlanName);
|
||||
std::string getRegion() const;
|
||||
void setRegion(const std::string ®ion);
|
||||
|
||||
@@ -53,11 +53,11 @@ private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string backupPlanStatus_;
|
||||
std::string backupPlanName_;
|
||||
int pageSize_;
|
||||
std::string ownerId_;
|
||||
std::string backupPlanName_;
|
||||
std::string region_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
std::string backupPlanName;
|
||||
std::string backupObjects;
|
||||
std::string resourceGroupId;
|
||||
std::string databaseType;
|
||||
std::string backupSetDownloadDir;
|
||||
std::string sourceEndpointInstanceID;
|
||||
std::string crossAliyunId;
|
||||
|
||||
@@ -32,24 +32,24 @@ public:
|
||||
~DescribeBackupSetDownloadTaskListRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupSetDownloadTaskId() const;
|
||||
void setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupSetDownloadTaskId() const;
|
||||
void setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDownloadTaskId_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
int pageSize_;
|
||||
std::string backupSetDownloadTaskId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -34,12 +34,8 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
long getStartTimestamp() const;
|
||||
void setStartTimestamp(long startTimestamp);
|
||||
long getEndTimestamp() const;
|
||||
@@ -48,17 +44,21 @@ public:
|
||||
void setShowStorageType(bool showStorageType);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string backupSetId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
long startTimestamp_;
|
||||
long endTimestamp_;
|
||||
bool showStorageType_;
|
||||
int pageSize_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -36,8 +36,6 @@ public:
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
long getStartTimestamp() const;
|
||||
void setStartTimestamp(long startTimestamp);
|
||||
long getEndTimestamp() const;
|
||||
@@ -46,16 +44,18 @@ public:
|
||||
void setShowStorageType(bool showStorageType);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
long startTimestamp_;
|
||||
long endTimestamp_;
|
||||
bool showStorageType_;
|
||||
int pageSize_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getLanguage() const;
|
||||
void setLanguage(const std::string &language);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string language_;
|
||||
std::string ownerId_;
|
||||
std::string taskId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getRestoreTaskId() const;
|
||||
void setRestoreTaskId(const std::string &restoreTaskId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
std::string restoreTaskId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -32,24 +32,24 @@ public:
|
||||
~DescribeRestoreRangeInfoRequest();
|
||||
long getBeginTimestampForRestore() const;
|
||||
void setBeginTimestampForRestore(long beginTimestampForRestore);
|
||||
long getEndTimestampForRestore() const;
|
||||
void setEndTimestampForRestore(long endTimestampForRestore);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
bool getRecentlyRestore() const;
|
||||
void setRecentlyRestore(bool recentlyRestore);
|
||||
long getEndTimestampForRestore() const;
|
||||
void setEndTimestampForRestore(long endTimestampForRestore);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
long beginTimestampForRestore_;
|
||||
long endTimestampForRestore_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool recentlyRestore_;
|
||||
long endTimestampForRestore_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -36,8 +36,6 @@ public:
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
long getStartTimestamp() const;
|
||||
void setStartTimestamp(long startTimestamp);
|
||||
long getEndTimestamp() const;
|
||||
@@ -46,16 +44,18 @@ public:
|
||||
void setRestoreTaskId(const std::string &restoreTaskId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
long startTimestamp_;
|
||||
long endTimestamp_;
|
||||
std::string restoreTaskId_;
|
||||
int pageSize_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -36,17 +36,17 @@ public:
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
long getTaskId() const;
|
||||
void setTaskId(long taskId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
long backupGatewayId_;
|
||||
std::string clientToken_;
|
||||
std::string ownerId_;
|
||||
long taskId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -40,16 +40,16 @@ public:
|
||||
void setBackupSetDownloadTargetType(const std::string &backupSetDownloadTargetType);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getBackupSetDownloadTargetTypeLocation() const;
|
||||
void setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation);
|
||||
std::string getBackupSetDownloadDir() const;
|
||||
void setBackupSetDownloadDir(const std::string &backupSetDownloadDir);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
bool getOpenAutoDownload() const;
|
||||
void setOpenAutoDownload(bool openAutoDownload);
|
||||
std::string getIncrementDataFormat() const;
|
||||
void setIncrementDataFormat(const std::string &incrementDataFormat);
|
||||
std::string getBackupSetDownloadTargetTypeLocation() const;
|
||||
void setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation);
|
||||
std::string getBackupSetDownloadDir() const;
|
||||
void setBackupSetDownloadDir(const std::string &backupSetDownloadDir);
|
||||
|
||||
private:
|
||||
std::string fullDataFormat_;
|
||||
@@ -57,11 +57,11 @@ private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDownloadTargetType_;
|
||||
std::string backupPlanId_;
|
||||
std::string backupSetDownloadTargetTypeLocation_;
|
||||
std::string backupSetDownloadDir_;
|
||||
std::string ownerId_;
|
||||
bool openAutoDownload_;
|
||||
std::string incrementDataFormat_;
|
||||
std::string backupSetDownloadTargetTypeLocation_;
|
||||
std::string backupSetDownloadDir_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -30,28 +30,28 @@ class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyRequest : public RpcServiceReq
|
||||
public:
|
||||
ModifyBackupStrategyRequest();
|
||||
~ModifyBackupStrategyRequest();
|
||||
int getBackupLogIntervalSeconds() const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getBackupStartTime() const;
|
||||
void setBackupStartTime(const std::string &backupStartTime);
|
||||
int getBackupLogIntervalSeconds() const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupPeriod() const;
|
||||
void setBackupPeriod(const std::string &backupPeriod);
|
||||
std::string getBackupStartTime() const;
|
||||
void setBackupStartTime(const std::string &backupStartTime);
|
||||
std::string getBackupStrategyType() const;
|
||||
void setBackupStrategyType(const std::string &backupStrategyType);
|
||||
|
||||
private:
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string backupStartTime_;
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string ownerId_;
|
||||
std::string backupPeriod_;
|
||||
std::string backupStartTime_;
|
||||
std::string backupStrategyType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,26 +30,26 @@ class ALIBABACLOUD_DBS_EXPORT ModifyStorageStrategyRequest : public RpcServiceRe
|
||||
public:
|
||||
ModifyStorageStrategyRequest();
|
||||
~ModifyStorageStrategyRequest();
|
||||
int getDuplicationArchivePeriod() const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
int getDuplicationArchivePeriod() const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getBackupRetentionPeriod() const;
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
|
||||
private:
|
||||
int duplicationArchivePeriod_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
int duplicationArchivePeriod_;
|
||||
std::string ownerId_;
|
||||
int backupRetentionPeriod_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -30,21 +30,21 @@ class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanRequest : public RpcServiceRequest
|
||||
public:
|
||||
RenewBackupPlanRequest();
|
||||
~RenewBackupPlanRequest();
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getUsedTime() const;
|
||||
void setUsedTime(int usedTime);
|
||||
|
||||
private:
|
||||
std::string period_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string period_;
|
||||
std::string ownerId_;
|
||||
int usedTime_;
|
||||
};
|
||||
|
||||
@@ -32,15 +32,15 @@ public:
|
||||
~StartRestoreTaskRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getRestoreTaskId() const;
|
||||
void setRestoreTaskId(const std::string &restoreTaskId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string ownerId_;
|
||||
std::string restoreTaskId_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getInstanceClass() const;
|
||||
void setInstanceClass(const std::string &instanceClass);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
std::string instanceClass_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -25,15 +25,6 @@ ConfigureBackupPlanRequest::ConfigureBackupPlanRequest()
|
||||
|
||||
ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest() {}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointRegion() const {
|
||||
return sourceEndpointRegion_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) {
|
||||
sourceEndpointRegion_ = sourceEndpointRegion;
|
||||
setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion);
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupGatewayId() const {
|
||||
return backupGatewayId_;
|
||||
}
|
||||
@@ -43,15 +34,6 @@ void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId) {
|
||||
setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID() const {
|
||||
return sourceEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) {
|
||||
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
|
||||
setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointUserName() const {
|
||||
return sourceEndpointUserName_;
|
||||
}
|
||||
@@ -61,42 +43,6 @@ void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string &so
|
||||
setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupPlanId() const {
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) {
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName() const {
|
||||
return sourceEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) {
|
||||
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
|
||||
setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod() const {
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) {
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
@@ -133,15 +79,6 @@ void ConfigureBackupPlanRequest::setCrossRoleName(const std::string &crossRoleNa
|
||||
setParameter(std::string("CrossRoleName"), crossRoleName);
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanRequest::getEnableBackupLog() const {
|
||||
return enableBackupLog_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) {
|
||||
enableBackupLog_ = enableBackupLog;
|
||||
setParameter(std::string("EnableBackupLog"), enableBackupLog ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupStorageType() const {
|
||||
return backupStorageType_;
|
||||
}
|
||||
@@ -169,15 +106,6 @@ void ConfigureBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogInterv
|
||||
setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getCrossAliyunId() const {
|
||||
return crossAliyunId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string &crossAliyunId) {
|
||||
crossAliyunId_ = crossAliyunId;
|
||||
setParameter(std::string("CrossAliyunId"), crossAliyunId);
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanRequest::getAutoStartBackup() const {
|
||||
return autoStartBackup_;
|
||||
}
|
||||
@@ -196,24 +124,6 @@ void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string &so
|
||||
setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupObjects() const {
|
||||
return backupObjects_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupObjects(const std::string &backupObjects) {
|
||||
backupObjects_ = backupObjects;
|
||||
setParameter(std::string("BackupObjects"), backupObjects);
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupRateLimit() const {
|
||||
return backupRateLimit_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit) {
|
||||
backupRateLimit_ = backupRateLimit;
|
||||
setParameter(std::string("BackupRateLimit"), std::to_string(backupRateLimit));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -223,15 +133,6 @@ void ConfigureBackupPlanRequest::setOwnerId(const std::string &ownerId) {
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getSourceEndpointPort() const {
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) {
|
||||
sourceEndpointPort_ = sourceEndpointPort;
|
||||
setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort));
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getBackupRetentionPeriod() const {
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
@@ -277,15 +178,6 @@ void ConfigureBackupPlanRequest::setBackupPlanName(const std::string &backupPlan
|
||||
setParameter(std::string("BackupPlanName"), backupPlanName);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID() const {
|
||||
return sourceEndpointOracleSID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) {
|
||||
sourceEndpointOracleSID_ = sourceEndpointOracleSID;
|
||||
setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOSSBucketName() const {
|
||||
return oSSBucketName_;
|
||||
}
|
||||
@@ -295,6 +187,114 @@ void ConfigureBackupPlanRequest::setOSSBucketName(const std::string &oSSBucketNa
|
||||
setParameter(std::string("OSSBucketName"), oSSBucketName);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointRegion() const {
|
||||
return sourceEndpointRegion_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) {
|
||||
sourceEndpointRegion_ = sourceEndpointRegion;
|
||||
setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID() const {
|
||||
return sourceEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) {
|
||||
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
|
||||
setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupPlanId() const {
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) {
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName() const {
|
||||
return sourceEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) {
|
||||
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
|
||||
setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod() const {
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) {
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanRequest::getEnableBackupLog() const {
|
||||
return enableBackupLog_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) {
|
||||
enableBackupLog_ = enableBackupLog;
|
||||
setParameter(std::string("EnableBackupLog"), enableBackupLog ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getCrossAliyunId() const {
|
||||
return crossAliyunId_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string &crossAliyunId) {
|
||||
crossAliyunId_ = crossAliyunId;
|
||||
setParameter(std::string("CrossAliyunId"), crossAliyunId);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupObjects() const {
|
||||
return backupObjects_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupObjects(const std::string &backupObjects) {
|
||||
backupObjects_ = backupObjects;
|
||||
setParameter(std::string("BackupObjects"), backupObjects);
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupRateLimit() const {
|
||||
return backupRateLimit_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit) {
|
||||
backupRateLimit_ = backupRateLimit;
|
||||
setParameter(std::string("BackupRateLimit"), std::to_string(backupRateLimit));
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getSourceEndpointPort() const {
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) {
|
||||
sourceEndpointPort_ = sourceEndpointPort;
|
||||
setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID() const {
|
||||
return sourceEndpointOracleSID_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) {
|
||||
sourceEndpointOracleSID_ = sourceEndpointOracleSID;
|
||||
setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID);
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupStrategyType() const {
|
||||
return backupStrategyType_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateFullBackupSetDownloadRequest::setClientToken(const std::string &clien
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getBackupSetDataFormat() const {
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) {
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getBackupSetId() const {
|
||||
return backupSetId_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void CreateFullBackupSetDownloadRequest::setOwnerId(const std::string &ownerId)
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getBackupSetDataFormat() const {
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) {
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,15 @@ void CreateGetDBListFromAgentTaskRequest::setClientToken(const std::string &clie
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointIP() const {
|
||||
return sourceEndpointIP_;
|
||||
}
|
||||
|
||||
void CreateGetDBListFromAgentTaskRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) {
|
||||
sourceEndpointIP_ = sourceEndpointIP;
|
||||
setParameter(std::string("SourceEndpointIP"), sourceEndpointIP);
|
||||
}
|
||||
|
||||
std::string CreateGetDBListFromAgentTaskRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -79,12 +88,3 @@ void CreateGetDBListFromAgentTaskRequest::setSourceEndpointPort(int sourceEndpoi
|
||||
setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort));
|
||||
}
|
||||
|
||||
std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointIP() const {
|
||||
return sourceEndpointIP_;
|
||||
}
|
||||
|
||||
void CreateGetDBListFromAgentTaskRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) {
|
||||
sourceEndpointIP_ = sourceEndpointIP;
|
||||
setParameter(std::string("SourceEndpointIP"), sourceEndpointIP);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateIncrementBackupSetDownloadRequest::setClientToken(const std::string &
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetDataFormat() const {
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) {
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetName() const {
|
||||
return backupSetName_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void CreateIncrementBackupSetDownloadRequest::setOwnerId(const std::string &owne
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetDataFormat() const {
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) {
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,42 +34,6 @@ void CreateRestoreTaskRequest::setBackupGatewayId(long backupGatewayId) {
|
||||
setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId));
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceType() const {
|
||||
return destinationEndpointInstanceType_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) {
|
||||
destinationEndpointInstanceType_ = destinationEndpointInstanceType;
|
||||
setParameter(std::string("DestinationEndpointInstanceType"), destinationEndpointInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getBackupPlanId() const {
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setBackupPlanId(const std::string &backupPlanId) {
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointRegion() const {
|
||||
return destinationEndpointRegion_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) {
|
||||
destinationEndpointRegion_ = destinationEndpointRegion;
|
||||
setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getCrossRoleName() const {
|
||||
return crossRoleName_;
|
||||
}
|
||||
@@ -88,15 +52,6 @@ void CreateRestoreTaskRequest::setDestinationEndpointUserName(const std::string
|
||||
setParameter(std::string("DestinationEndpointUserName"), destinationEndpointUserName);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getRestoreObjects() const {
|
||||
return restoreObjects_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreObjects(const std::string &restoreObjects) {
|
||||
restoreObjects_ = restoreObjects;
|
||||
setParameter(std::string("RestoreObjects"), restoreObjects);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getRestoreTaskName() const {
|
||||
return restoreTaskName_;
|
||||
}
|
||||
@@ -106,15 +61,6 @@ void CreateRestoreTaskRequest::setRestoreTaskName(const std::string &restoreTask
|
||||
setParameter(std::string("RestoreTaskName"), restoreTaskName);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getRestoreHome() const {
|
||||
return restoreHome_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreHome(const std::string &restoreHome) {
|
||||
restoreHome_ = restoreHome;
|
||||
setParameter(std::string("RestoreHome"), restoreHome);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointOracleSID() const {
|
||||
return destinationEndpointOracleSID_;
|
||||
}
|
||||
@@ -124,33 +70,6 @@ void CreateRestoreTaskRequest::setDestinationEndpointOracleSID(const std::string
|
||||
setParameter(std::string("DestinationEndpointOracleSID"), destinationEndpointOracleSID);
|
||||
}
|
||||
|
||||
long CreateRestoreTaskRequest::getRestoreTime() const {
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreTime(long restoreTime) {
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter(std::string("RestoreTime"), std::to_string(restoreTime));
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getCrossAliyunId() const {
|
||||
return crossAliyunId_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setCrossAliyunId(const std::string &crossAliyunId) {
|
||||
crossAliyunId_ = crossAliyunId;
|
||||
setParameter(std::string("CrossAliyunId"), crossAliyunId);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceID() const {
|
||||
return destinationEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) {
|
||||
destinationEndpointInstanceID_ = destinationEndpointInstanceID;
|
||||
setParameter(std::string("DestinationEndpointInstanceID"), destinationEndpointInstanceID);
|
||||
}
|
||||
|
||||
int CreateRestoreTaskRequest::getDestinationEndpointPort() const {
|
||||
return destinationEndpointPort_;
|
||||
}
|
||||
@@ -196,15 +115,6 @@ void CreateRestoreTaskRequest::setDestinationEndpointIP(const std::string &desti
|
||||
setParameter(std::string("DestinationEndpointIP"), destinationEndpointIP);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointDatabaseName() const {
|
||||
return destinationEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName) {
|
||||
destinationEndpointDatabaseName_ = destinationEndpointDatabaseName;
|
||||
setParameter(std::string("DestinationEndpointDatabaseName"), destinationEndpointDatabaseName);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDuplicateConflict() const {
|
||||
return duplicateConflict_;
|
||||
}
|
||||
@@ -214,6 +124,96 @@ void CreateRestoreTaskRequest::setDuplicateConflict(const std::string &duplicate
|
||||
setParameter(std::string("DuplicateConflict"), duplicateConflict);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceType() const {
|
||||
return destinationEndpointInstanceType_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) {
|
||||
destinationEndpointInstanceType_ = destinationEndpointInstanceType;
|
||||
setParameter(std::string("DestinationEndpointInstanceType"), destinationEndpointInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getBackupPlanId() const {
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setBackupPlanId(const std::string &backupPlanId) {
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointRegion() const {
|
||||
return destinationEndpointRegion_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) {
|
||||
destinationEndpointRegion_ = destinationEndpointRegion;
|
||||
setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getRestoreObjects() const {
|
||||
return restoreObjects_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreObjects(const std::string &restoreObjects) {
|
||||
restoreObjects_ = restoreObjects;
|
||||
setParameter(std::string("RestoreObjects"), restoreObjects);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getRestoreHome() const {
|
||||
return restoreHome_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreHome(const std::string &restoreHome) {
|
||||
restoreHome_ = restoreHome;
|
||||
setParameter(std::string("RestoreHome"), restoreHome);
|
||||
}
|
||||
|
||||
long CreateRestoreTaskRequest::getRestoreTime() const {
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setRestoreTime(long restoreTime) {
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter(std::string("RestoreTime"), std::to_string(restoreTime));
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getCrossAliyunId() const {
|
||||
return crossAliyunId_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setCrossAliyunId(const std::string &crossAliyunId) {
|
||||
crossAliyunId_ = crossAliyunId;
|
||||
setParameter(std::string("CrossAliyunId"), crossAliyunId);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceID() const {
|
||||
return destinationEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) {
|
||||
destinationEndpointInstanceID_ = destinationEndpointInstanceID;
|
||||
setParameter(std::string("DestinationEndpointInstanceID"), destinationEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointDatabaseName() const {
|
||||
return destinationEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void CreateRestoreTaskRequest::setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName) {
|
||||
destinationEndpointDatabaseName_ = destinationEndpointDatabaseName;
|
||||
setParameter(std::string("DestinationEndpointDatabaseName"), destinationEndpointDatabaseName);
|
||||
}
|
||||
|
||||
std::string CreateRestoreTaskRequest::getDestinationEndpointPassword() const {
|
||||
return destinationEndpointPassword_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest()
|
||||
|
||||
DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest() {}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getIdentifier() const {
|
||||
return identifier_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setIdentifier(const std::string &identifier) {
|
||||
identifier_ = identifier;
|
||||
setParameter(std::string("Identifier"), identifier);
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void DescribeBackupGatewayListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
int DescribeBackupGatewayListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -70,6 +52,24 @@ void DescribeBackupGatewayListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getIdentifier() const {
|
||||
return identifier_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setIdentifier(const std::string &identifier) {
|
||||
identifier_ = identifier;
|
||||
setParameter(std::string("Identifier"), identifier);
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupGatewayListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupGatewayListRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeBackupPlanBillingRequest::setBackupPlanId(const std::string &backup
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanBillingRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanBillingRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
bool DescribeBackupPlanBillingRequest::getShowStorageType() const {
|
||||
return showStorageType_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void DescribeBackupPlanBillingRequest::setShowStorageType(bool showStorageType)
|
||||
setParameter(std::string("ShowStorageType"), showStorageType ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanBillingRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanBillingRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,8 +68,6 @@ void DescribeBackupPlanBillingResult::parse(const std::string &payload)
|
||||
item_.buyChargeType = itemNode["BuyChargeType"].asString();
|
||||
if(!itemNode["UsedIncrementBytes"].isNull())
|
||||
item_.usedIncrementBytes = std::stol(itemNode["UsedIncrementBytes"].asString());
|
||||
if(!itemNode["ResourceGroupId"].isNull())
|
||||
item_.resourceGroupId = itemNode["ResourceGroupId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
|
||||
@@ -52,15 +52,6 @@ void DescribeBackupPlanListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
@@ -79,15 +70,6 @@ void DescribeBackupPlanListRequest::setBackupPlanStatus(const std::string &backu
|
||||
setParameter(std::string("BackupPlanStatus"), backupPlanStatus);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getBackupPlanName() const {
|
||||
return backupPlanName_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setBackupPlanName(const std::string &backupPlanName) {
|
||||
backupPlanName_ = backupPlanName;
|
||||
setParameter(std::string("BackupPlanName"), backupPlanName);
|
||||
}
|
||||
|
||||
int DescribeBackupPlanListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -97,6 +79,24 @@ void DescribeBackupPlanListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getBackupPlanName() const {
|
||||
return backupPlanName_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanListRequest::setBackupPlanName(const std::string &backupPlanName) {
|
||||
backupPlanName_ = backupPlanName;
|
||||
setParameter(std::string("BackupPlanName"), backupPlanName);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanListRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,8 @@ void DescribeBackupPlanListResult::parse(const std::string &payload)
|
||||
itemsObject.enableBackupLog = valueItemsBackupPlanDetail["EnableBackupLog"].asString() == "true";
|
||||
if(!valueItemsBackupPlanDetail["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsBackupPlanDetail["ResourceGroupId"].asString();
|
||||
if(!valueItemsBackupPlanDetail["DatabaseType"].isNull())
|
||||
itemsObject.databaseType = valueItemsBackupPlanDetail["DatabaseType"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -34,15 +34,6 @@ void DescribeBackupSetDownloadTaskListRequest::setClientToken(const std::string
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getBackupSetDownloadTaskId() const {
|
||||
return backupSetDownloadTaskId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId) {
|
||||
backupSetDownloadTaskId_ = backupSetDownloadTaskId;
|
||||
setParameter(std::string("BackupSetDownloadTaskId"), backupSetDownloadTaskId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getBackupPlanId() const {
|
||||
return backupPlanId_;
|
||||
}
|
||||
@@ -61,15 +52,6 @@ void DescribeBackupSetDownloadTaskListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -79,3 +61,21 @@ void DescribeBackupSetDownloadTaskListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getBackupSetDownloadTaskId() const {
|
||||
return backupSetDownloadTaskId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId) {
|
||||
backupSetDownloadTaskId_ = backupSetDownloadTaskId;
|
||||
setParameter(std::string("BackupSetDownloadTaskId"), backupSetDownloadTaskId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeFullBackupListRequest::setBackupPlanId(const std::string &backupPla
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getBackupSetId() const {
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setBackupSetId(const std::string &backupSetId) {
|
||||
backupSetId_ = backupSetId;
|
||||
setParameter(std::string("BackupSetId"), backupSetId);
|
||||
}
|
||||
|
||||
int DescribeFullBackupListRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
@@ -61,15 +52,6 @@ void DescribeFullBackupListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
long DescribeFullBackupListRequest::getStartTimestamp() const {
|
||||
return startTimestamp_;
|
||||
}
|
||||
@@ -106,3 +88,21 @@ void DescribeFullBackupListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getBackupSetId() const {
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setBackupSetId(const std::string &backupSetId) {
|
||||
backupSetId_ = backupSetId;
|
||||
setParameter(std::string("BackupSetId"), backupSetId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,15 +52,6 @@ void DescribeIncrementBackupListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
long DescribeIncrementBackupListRequest::getStartTimestamp() const {
|
||||
return startTimestamp_;
|
||||
}
|
||||
@@ -97,3 +88,12 @@ void DescribeIncrementBackupListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIncrementBackupListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIncrementBackupListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeJobErrorCodeRequest::setLanguage(const std::string &language) {
|
||||
setParameter(std::string("Language"), language);
|
||||
}
|
||||
|
||||
std::string DescribeJobErrorCodeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeJobErrorCodeRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeJobErrorCodeRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void DescribeJobErrorCodeRequest::setTaskId(const std::string &taskId) {
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
std::string DescribeJobErrorCodeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeJobErrorCodeRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribePreCheckProgressListRequest::setBackupPlanId(const std::string &bac
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribePreCheckProgressListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribePreCheckProgressListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribePreCheckProgressListRequest::getRestoreTaskId() const {
|
||||
return restoreTaskId_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void DescribePreCheckProgressListRequest::setRestoreTaskId(const std::string &re
|
||||
setParameter(std::string("RestoreTaskId"), restoreTaskId);
|
||||
}
|
||||
|
||||
std::string DescribePreCheckProgressListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribePreCheckProgressListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void DescribeRestoreRangeInfoRequest::setBeginTimestampForRestore(long beginTime
|
||||
setParameter(std::string("BeginTimestampForRestore"), std::to_string(beginTimestampForRestore));
|
||||
}
|
||||
|
||||
long DescribeRestoreRangeInfoRequest::getEndTimestampForRestore() const {
|
||||
return endTimestampForRestore_;
|
||||
}
|
||||
|
||||
void DescribeRestoreRangeInfoRequest::setEndTimestampForRestore(long endTimestampForRestore) {
|
||||
endTimestampForRestore_ = endTimestampForRestore;
|
||||
setParameter(std::string("EndTimestampForRestore"), std::to_string(endTimestampForRestore));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreRangeInfoRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -61,15 +52,6 @@ void DescribeRestoreRangeInfoRequest::setBackupPlanId(const std::string &backupP
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreRangeInfoRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
bool DescribeRestoreRangeInfoRequest::getRecentlyRestore() const {
|
||||
return recentlyRestore_;
|
||||
}
|
||||
@@ -79,3 +61,21 @@ void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore) {
|
||||
setParameter(std::string("RecentlyRestore"), recentlyRestore ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeRestoreRangeInfoRequest::getEndTimestampForRestore() const {
|
||||
return endTimestampForRestore_;
|
||||
}
|
||||
|
||||
void DescribeRestoreRangeInfoRequest::setEndTimestampForRestore(long endTimestampForRestore) {
|
||||
endTimestampForRestore_ = endTimestampForRestore;
|
||||
setParameter(std::string("EndTimestampForRestore"), std::to_string(endTimestampForRestore));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreRangeInfoRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,15 +52,6 @@ void DescribeRestoreTaskListRequest::setPageNum(int pageNum) {
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreTaskListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreTaskListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
long DescribeRestoreTaskListRequest::getStartTimestamp() const {
|
||||
return startTimestamp_;
|
||||
}
|
||||
@@ -97,3 +88,12 @@ void DescribeRestoreTaskListRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreTaskListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreTaskListRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,15 +52,6 @@ void GetDBListFromAgentRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string GetDBListFromAgentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetDBListFromAgentRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
long GetDBListFromAgentRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
@@ -70,3 +61,12 @@ void GetDBListFromAgentRequest::setTaskId(long taskId) {
|
||||
setParameter(std::string("TaskId"), std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string GetDBListFromAgentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetDBListFromAgentRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,24 @@ void ModifyBackupSetDownloadRulesRequest::setBackupPlanId(const std::string &bac
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetTypeLocation() const {
|
||||
return backupSetDownloadTargetTypeLocation_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation) {
|
||||
backupSetDownloadTargetTypeLocation_ = backupSetDownloadTargetTypeLocation;
|
||||
setParameter(std::string("BackupSetDownloadTargetTypeLocation"), backupSetDownloadTargetTypeLocation);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir() const {
|
||||
return backupSetDownloadDir_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadDir(const std::string &backupSetDownloadDir) {
|
||||
backupSetDownloadDir_ = backupSetDownloadDir;
|
||||
setParameter(std::string("BackupSetDownloadDir"), backupSetDownloadDir);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -97,21 +115,3 @@ void ModifyBackupSetDownloadRulesRequest::setIncrementDataFormat(const std::stri
|
||||
setParameter(std::string("IncrementDataFormat"), incrementDataFormat);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetTypeLocation() const {
|
||||
return backupSetDownloadTargetTypeLocation_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation) {
|
||||
backupSetDownloadTargetTypeLocation_ = backupSetDownloadTargetTypeLocation;
|
||||
setParameter(std::string("BackupSetDownloadTargetTypeLocation"), backupSetDownloadTargetTypeLocation);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir() const {
|
||||
return backupSetDownloadDir_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadDir(const std::string &backupSetDownloadDir) {
|
||||
backupSetDownloadDir_ = backupSetDownloadDir;
|
||||
setParameter(std::string("BackupSetDownloadDir"), backupSetDownloadDir);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ ModifyBackupStrategyRequest::ModifyBackupStrategyRequest()
|
||||
|
||||
ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest() {}
|
||||
|
||||
int ModifyBackupStrategyRequest::getBackupLogIntervalSeconds() const {
|
||||
return backupLogIntervalSeconds_;
|
||||
}
|
||||
|
||||
void ModifyBackupStrategyRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) {
|
||||
backupLogIntervalSeconds_ = backupLogIntervalSeconds;
|
||||
setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,6 +43,24 @@ void ModifyBackupStrategyRequest::setBackupPlanId(const std::string &backupPlanI
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getBackupStartTime() const {
|
||||
return backupStartTime_;
|
||||
}
|
||||
|
||||
void ModifyBackupStrategyRequest::setBackupStartTime(const std::string &backupStartTime) {
|
||||
backupStartTime_ = backupStartTime;
|
||||
setParameter(std::string("BackupStartTime"), backupStartTime);
|
||||
}
|
||||
|
||||
int ModifyBackupStrategyRequest::getBackupLogIntervalSeconds() const {
|
||||
return backupLogIntervalSeconds_;
|
||||
}
|
||||
|
||||
void ModifyBackupStrategyRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) {
|
||||
backupLogIntervalSeconds_ = backupLogIntervalSeconds;
|
||||
setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -70,15 +79,6 @@ void ModifyBackupStrategyRequest::setBackupPeriod(const std::string &backupPerio
|
||||
setParameter(std::string("BackupPeriod"), backupPeriod);
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getBackupStartTime() const {
|
||||
return backupStartTime_;
|
||||
}
|
||||
|
||||
void ModifyBackupStrategyRequest::setBackupStartTime(const std::string &backupStartTime) {
|
||||
backupStartTime_ = backupStartTime;
|
||||
setParameter(std::string("BackupStartTime"), backupStartTime);
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getBackupStrategyType() const {
|
||||
return backupStrategyType_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ ModifyStorageStrategyRequest::ModifyStorageStrategyRequest()
|
||||
|
||||
ModifyStorageStrategyRequest::~ModifyStorageStrategyRequest() {}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationArchivePeriod() const {
|
||||
return duplicationArchivePeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) {
|
||||
duplicationArchivePeriod_ = duplicationArchivePeriod;
|
||||
setParameter(std::string("DuplicationArchivePeriod"), std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,6 +43,24 @@ void ModifyStorageStrategyRequest::setBackupPlanId(const std::string &backupPlan
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationInfrequentAccessPeriod() const {
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) {
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationArchivePeriod() const {
|
||||
return duplicationArchivePeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) {
|
||||
duplicationArchivePeriod_ = duplicationArchivePeriod;
|
||||
setParameter(std::string("DuplicationArchivePeriod"), std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -70,12 +79,3 @@ void ModifyStorageStrategyRequest::setBackupRetentionPeriod(int backupRetentionP
|
||||
setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod));
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationInfrequentAccessPeriod() const {
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) {
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ RenewBackupPlanRequest::RenewBackupPlanRequest()
|
||||
|
||||
RenewBackupPlanRequest::~RenewBackupPlanRequest() {}
|
||||
|
||||
std::string RenewBackupPlanRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void RenewBackupPlanRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string RenewBackupPlanRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,6 +43,15 @@ void RenewBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) {
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string RenewBackupPlanRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void RenewBackupPlanRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string RenewBackupPlanRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ void StartRestoreTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string StartRestoreTaskRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartRestoreTaskRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string StartRestoreTaskRequest::getRestoreTaskId() const {
|
||||
return restoreTaskId_;
|
||||
}
|
||||
@@ -52,3 +43,12 @@ void StartRestoreTaskRequest::setRestoreTaskId(const std::string &restoreTaskId)
|
||||
setParameter(std::string("RestoreTaskId"), restoreTaskId);
|
||||
}
|
||||
|
||||
std::string StartRestoreTaskRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartRestoreTaskRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void UpgradeBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId)
|
||||
setParameter(std::string("BackupPlanId"), backupPlanId);
|
||||
}
|
||||
|
||||
std::string UpgradeBackupPlanRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpgradeBackupPlanRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string UpgradeBackupPlanRequest::getInstanceClass() const {
|
||||
return instanceClass_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void UpgradeBackupPlanRequest::setInstanceClass(const std::string &instanceClass
|
||||
setParameter(std::string("InstanceClass"), instanceClass);
|
||||
}
|
||||
|
||||
std::string UpgradeBackupPlanRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpgradeBackupPlanRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataArchiveOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataArchiveOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h
|
||||
@@ -137,6 +139,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataArchiveCountRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataArchiveCountResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataArchiveOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataArchiveOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h
|
||||
@@ -460,6 +464,8 @@ set(dms-enterprise_src
|
||||
src/model/CloseOrderResult.cc
|
||||
src/model/CreateAuthorityTemplateRequest.cc
|
||||
src/model/CreateAuthorityTemplateResult.cc
|
||||
src/model/CreateDataArchiveOrderRequest.cc
|
||||
src/model/CreateDataArchiveOrderResult.cc
|
||||
src/model/CreateDataCorrectOrderRequest.cc
|
||||
src/model/CreateDataCorrectOrderResult.cc
|
||||
src/model/CreateDataCronClearOrderRequest.cc
|
||||
@@ -552,6 +558,8 @@ set(dms-enterprise_src
|
||||
src/model/GetDBTaskSQLJobLogResult.cc
|
||||
src/model/GetDBTopologyRequest.cc
|
||||
src/model/GetDBTopologyResult.cc
|
||||
src/model/GetDataArchiveCountRequest.cc
|
||||
src/model/GetDataArchiveCountResult.cc
|
||||
src/model/GetDataArchiveOrderDetailRequest.cc
|
||||
src/model/GetDataArchiveOrderDetailResult.cc
|
||||
src/model/GetDataCorrectBackupFilesRequest.cc
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
#include "model/CloseOrderResult.h"
|
||||
#include "model/CreateAuthorityTemplateRequest.h"
|
||||
#include "model/CreateAuthorityTemplateResult.h"
|
||||
#include "model/CreateDataArchiveOrderRequest.h"
|
||||
#include "model/CreateDataArchiveOrderResult.h"
|
||||
#include "model/CreateDataCorrectOrderRequest.h"
|
||||
#include "model/CreateDataCorrectOrderResult.h"
|
||||
#include "model/CreateDataCronClearOrderRequest.h"
|
||||
@@ -138,6 +140,8 @@
|
||||
#include "model/GetDBTaskSQLJobLogResult.h"
|
||||
#include "model/GetDBTopologyRequest.h"
|
||||
#include "model/GetDBTopologyResult.h"
|
||||
#include "model/GetDataArchiveCountRequest.h"
|
||||
#include "model/GetDataArchiveCountResult.h"
|
||||
#include "model/GetDataArchiveOrderDetailRequest.h"
|
||||
#include "model/GetDataArchiveOrderDetailResult.h"
|
||||
#include "model/GetDataCorrectBackupFilesRequest.h"
|
||||
@@ -479,6 +483,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAuthorityTemplateResult> CreateAuthorityTemplateOutcome;
|
||||
typedef std::future<CreateAuthorityTemplateOutcome> CreateAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateAuthorityTemplateRequest&, const CreateAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataArchiveOrderResult> CreateDataArchiveOrderOutcome;
|
||||
typedef std::future<CreateDataArchiveOrderOutcome> CreateDataArchiveOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataArchiveOrderRequest&, const CreateDataArchiveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataArchiveOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataCorrectOrderResult> CreateDataCorrectOrderOutcome;
|
||||
typedef std::future<CreateDataCorrectOrderOutcome> CreateDataCorrectOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataCorrectOrderRequest&, const CreateDataCorrectOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataCorrectOrderAsyncHandler;
|
||||
@@ -617,6 +624,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDBTopologyResult> GetDBTopologyOutcome;
|
||||
typedef std::future<GetDBTopologyOutcome> GetDBTopologyOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDBTopologyRequest&, const GetDBTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBTopologyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataArchiveCountResult> GetDataArchiveCountOutcome;
|
||||
typedef std::future<GetDataArchiveCountOutcome> GetDataArchiveCountOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataArchiveCountRequest&, const GetDataArchiveCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataArchiveCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataArchiveOrderDetailResult> GetDataArchiveOrderDetailOutcome;
|
||||
typedef std::future<GetDataArchiveOrderDetailOutcome> GetDataArchiveOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataArchiveOrderDetailRequest&, const GetDataArchiveOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataArchiveOrderDetailAsyncHandler;
|
||||
@@ -1102,6 +1112,9 @@ namespace AlibabaCloud
|
||||
CreateAuthorityTemplateOutcome createAuthorityTemplate(const Model::CreateAuthorityTemplateRequest &request)const;
|
||||
void createAuthorityTemplateAsync(const Model::CreateAuthorityTemplateRequest& request, const CreateAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthorityTemplateOutcomeCallable createAuthorityTemplateCallable(const Model::CreateAuthorityTemplateRequest& request) const;
|
||||
CreateDataArchiveOrderOutcome createDataArchiveOrder(const Model::CreateDataArchiveOrderRequest &request)const;
|
||||
void createDataArchiveOrderAsync(const Model::CreateDataArchiveOrderRequest& request, const CreateDataArchiveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataArchiveOrderOutcomeCallable createDataArchiveOrderCallable(const Model::CreateDataArchiveOrderRequest& request) const;
|
||||
CreateDataCorrectOrderOutcome createDataCorrectOrder(const Model::CreateDataCorrectOrderRequest &request)const;
|
||||
void createDataCorrectOrderAsync(const Model::CreateDataCorrectOrderRequest& request, const CreateDataCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataCorrectOrderOutcomeCallable createDataCorrectOrderCallable(const Model::CreateDataCorrectOrderRequest& request) const;
|
||||
@@ -1240,6 +1253,9 @@ namespace AlibabaCloud
|
||||
GetDBTopologyOutcome getDBTopology(const Model::GetDBTopologyRequest &request)const;
|
||||
void getDBTopologyAsync(const Model::GetDBTopologyRequest& request, const GetDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDBTopologyOutcomeCallable getDBTopologyCallable(const Model::GetDBTopologyRequest& request) const;
|
||||
GetDataArchiveCountOutcome getDataArchiveCount(const Model::GetDataArchiveCountRequest &request)const;
|
||||
void getDataArchiveCountAsync(const Model::GetDataArchiveCountRequest& request, const GetDataArchiveCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataArchiveCountOutcomeCallable getDataArchiveCountCallable(const Model::GetDataArchiveCountRequest& request) const;
|
||||
GetDataArchiveOrderDetailOutcome getDataArchiveOrderDetail(const Model::GetDataArchiveOrderDetailRequest &request)const;
|
||||
void getDataArchiveOrderDetailAsync(const Model::GetDataArchiveOrderDetailRequest& request, const GetDataArchiveOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataArchiveOrderDetailOutcomeCallable getDataArchiveOrderDetailCallable(const Model::GetDataArchiveOrderDetailRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataArchiveOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Param {
|
||||
std::string string;
|
||||
std::vector<std::string> variables;
|
||||
std::string targetInstanceId;
|
||||
std::string string;
|
||||
std::vector<std::string> tableMapping;
|
||||
std::string string;
|
||||
std::vector<std::string> orderAfter;
|
||||
long sourceDatabaseId;
|
||||
std::string dbSchema;
|
||||
std::string runMethod;
|
||||
bool logic;
|
||||
std::string archiveMethod;
|
||||
struct TableIncludesItem {
|
||||
std::string tableWhere;
|
||||
std::string tableName;
|
||||
};
|
||||
TableIncludesItem tableIncludesItem;
|
||||
std::vector<TableIncludesItem> tableIncludes;
|
||||
};
|
||||
CreateDataArchiveOrderRequest();
|
||||
~CreateDataArchiveOrderRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getParentId() const;
|
||||
void setParentId(long parentId);
|
||||
std::string getPluginType() const;
|
||||
void setPluginType(const std::string &pluginType);
|
||||
Param getParam() const;
|
||||
void setParam(const Param ¶m);
|
||||
std::vector<std::string> getRelatedUserList() const;
|
||||
void setRelatedUserList(const std::vector<std::string> &relatedUserList);
|
||||
std::string getComment() const;
|
||||
void setComment(const std::string &comment);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long parentId_;
|
||||
std::string pluginType_;
|
||||
Param param_;
|
||||
std::vector<std::string> relatedUserList_;
|
||||
std::string comment_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataArchiveOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDataArchiveOrderResult();
|
||||
explicit CreateDataArchiveOrderResult(const std::string &payload);
|
||||
~CreateDataArchiveOrderResult();
|
||||
std::vector<std::string> getCreateOrderResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> createOrderResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAARCHIVEORDERRESULT_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataArchiveCountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDataArchiveCountRequest();
|
||||
~GetDataArchiveCountRequest();
|
||||
std::string getSearchDateType() const;
|
||||
void setSearchDateType(const std::string &searchDateType);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getPluginType() const;
|
||||
void setPluginType(const std::string &pluginType);
|
||||
std::string getOrderResultType() const;
|
||||
void setOrderResultType(const std::string &orderResultType);
|
||||
|
||||
private:
|
||||
std::string searchDateType_;
|
||||
long tid_;
|
||||
std::string pluginType_;
|
||||
std::string orderResultType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataArchiveCountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long processingCount;
|
||||
long totalCount;
|
||||
long failCount;
|
||||
long successCount;
|
||||
};
|
||||
|
||||
|
||||
GetDataArchiveCountResult();
|
||||
explicit GetDataArchiveCountResult(const std::string &payload);
|
||||
~GetDataArchiveCountResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAARCHIVECOUNTRESULT_H_
|
||||
@@ -483,6 +483,42 @@ Dms_enterpriseClient::CreateAuthorityTemplateOutcomeCallable Dms_enterpriseClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataArchiveOrderOutcome Dms_enterpriseClient::createDataArchiveOrder(const CreateDataArchiveOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDataArchiveOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDataArchiveOrderOutcome(CreateDataArchiveOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateDataArchiveOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createDataArchiveOrderAsync(const CreateDataArchiveOrderRequest& request, const CreateDataArchiveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDataArchiveOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataArchiveOrderOutcomeCallable Dms_enterpriseClient::createDataArchiveOrderCallable(const CreateDataArchiveOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDataArchiveOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDataArchiveOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataCorrectOrderOutcome Dms_enterpriseClient::createDataCorrectOrder(const CreateDataCorrectOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2139,6 +2175,42 @@ Dms_enterpriseClient::GetDBTopologyOutcomeCallable Dms_enterpriseClient::getDBTo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataArchiveCountOutcome Dms_enterpriseClient::getDataArchiveCount(const GetDataArchiveCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDataArchiveCountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDataArchiveCountOutcome(GetDataArchiveCountResult(outcome.result()));
|
||||
else
|
||||
return GetDataArchiveCountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDataArchiveCountAsync(const GetDataArchiveCountRequest& request, const GetDataArchiveCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDataArchiveCount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataArchiveCountOutcomeCallable Dms_enterpriseClient::getDataArchiveCountCallable(const GetDataArchiveCountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDataArchiveCountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDataArchiveCount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataArchiveOrderDetailOutcome Dms_enterpriseClient::getDataArchiveOrderDetail(const GetDataArchiveOrderDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
101
dms-enterprise/src/model/CreateDataArchiveOrderRequest.cc
Normal file
101
dms-enterprise/src/model/CreateDataArchiveOrderRequest.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataArchiveOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataArchiveOrderRequest;
|
||||
|
||||
CreateDataArchiveOrderRequest::CreateDataArchiveOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataArchiveOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataArchiveOrderRequest::~CreateDataArchiveOrderRequest() {}
|
||||
|
||||
long CreateDataArchiveOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long CreateDataArchiveOrderRequest::getParentId() const {
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setParentId(long parentId) {
|
||||
parentId_ = parentId;
|
||||
setParameter(std::string("ParentId"), std::to_string(parentId));
|
||||
}
|
||||
|
||||
std::string CreateDataArchiveOrderRequest::getPluginType() const {
|
||||
return pluginType_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setPluginType(const std::string &pluginType) {
|
||||
pluginType_ = pluginType;
|
||||
setParameter(std::string("PluginType"), pluginType);
|
||||
}
|
||||
|
||||
CreateDataArchiveOrderRequest::Param CreateDataArchiveOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setParam(const CreateDataArchiveOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1 != param.variables.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".Variables." + std::to_string(dep1 + 1), param.variables[dep1]);
|
||||
}
|
||||
setParameter(std::string("Param") + ".TargetInstanceId", param.targetInstanceId);
|
||||
for(int dep1 = 0; dep1 != param.tableMapping.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".TableMapping." + std::to_string(dep1 + 1), param.tableMapping[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != param.orderAfter.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".OrderAfter." + std::to_string(dep1 + 1), param.orderAfter[dep1]);
|
||||
}
|
||||
setParameter(std::string("Param") + ".SourceDatabaseId", std::to_string(param.sourceDatabaseId));
|
||||
setParameter(std::string("Param") + ".DbSchema", param.dbSchema);
|
||||
setParameter(std::string("Param") + ".RunMethod", param.runMethod);
|
||||
setParameter(std::string("Param") + ".Logic", param.logic ? "true" : "false");
|
||||
setParameter(std::string("Param") + ".ArchiveMethod", param.archiveMethod);
|
||||
for(int dep1 = 0; dep1 != param.tableIncludes.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".TableIncludes." + std::to_string(dep1 + 1) + ".TableWhere", param.tableIncludes[dep1].tableWhere);
|
||||
setParameter(std::string("Param") + ".TableIncludes." + std::to_string(dep1 + 1) + ".TableName", param.tableIncludes[dep1].tableName);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateDataArchiveOrderRequest::std::string> CreateDataArchiveOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setRelatedUserList(const std::vector<CreateDataArchiveOrderRequest::std::string> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), relatedUserList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDataArchiveOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateDataArchiveOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateDataArchiveOrderResult.cc
Normal file
73
dms-enterprise/src/model/CreateDataArchiveOrderResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataArchiveOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateDataArchiveOrderResult::CreateDataArchiveOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataArchiveOrderResult::CreateDataArchiveOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataArchiveOrderResult::~CreateDataArchiveOrderResult()
|
||||
{}
|
||||
|
||||
void CreateDataArchiveOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateDataArchiveOrderResult::getCreateOrderResult()const
|
||||
{
|
||||
return createOrderResult_;
|
||||
}
|
||||
|
||||
std::string CreateDataArchiveOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateDataArchiveOrderResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateDataArchiveOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
dms-enterprise/src/model/GetDataArchiveCountRequest.cc
Normal file
63
dms-enterprise/src/model/GetDataArchiveCountRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataArchiveCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataArchiveCountRequest;
|
||||
|
||||
GetDataArchiveCountRequest::GetDataArchiveCountRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataArchiveCount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataArchiveCountRequest::~GetDataArchiveCountRequest() {}
|
||||
|
||||
std::string GetDataArchiveCountRequest::getSearchDateType() const {
|
||||
return searchDateType_;
|
||||
}
|
||||
|
||||
void GetDataArchiveCountRequest::setSearchDateType(const std::string &searchDateType) {
|
||||
searchDateType_ = searchDateType;
|
||||
setParameter(std::string("SearchDateType"), searchDateType);
|
||||
}
|
||||
|
||||
long GetDataArchiveCountRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataArchiveCountRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string GetDataArchiveCountRequest::getPluginType() const {
|
||||
return pluginType_;
|
||||
}
|
||||
|
||||
void GetDataArchiveCountRequest::setPluginType(const std::string &pluginType) {
|
||||
pluginType_ = pluginType;
|
||||
setParameter(std::string("PluginType"), pluginType);
|
||||
}
|
||||
|
||||
std::string GetDataArchiveCountRequest::getOrderResultType() const {
|
||||
return orderResultType_;
|
||||
}
|
||||
|
||||
void GetDataArchiveCountRequest::setOrderResultType(const std::string &orderResultType) {
|
||||
orderResultType_ = orderResultType;
|
||||
setParameter(std::string("OrderResultType"), orderResultType);
|
||||
}
|
||||
|
||||
65
dms-enterprise/src/model/GetDataArchiveCountResult.cc
Normal file
65
dms-enterprise/src/model/GetDataArchiveCountResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataArchiveCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDataArchiveCountResult::GetDataArchiveCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataArchiveCountResult::GetDataArchiveCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataArchiveCountResult::~GetDataArchiveCountResult()
|
||||
{}
|
||||
|
||||
void GetDataArchiveCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["FailCount"].isNull())
|
||||
data_.failCount = std::stol(dataNode["FailCount"].asString());
|
||||
if(!dataNode["ProcessingCount"].isNull())
|
||||
data_.processingCount = std::stol(dataNode["ProcessingCount"].asString());
|
||||
if(!dataNode["SuccessCount"].isNull())
|
||||
data_.successCount = std::stol(dataNode["SuccessCount"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetDataArchiveCountResult::Data GetDataArchiveCountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool GetDataArchiveCountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ set(eais_public_header
|
||||
set(eais_public_header_model
|
||||
include/alibabacloud/eais/model/AttachEaiRequest.h
|
||||
include/alibabacloud/eais/model/AttachEaiResult.h
|
||||
include/alibabacloud/eais/model/AttachEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/AttachEaisEiResult.h
|
||||
include/alibabacloud/eais/model/ChangeResourceGroupRequest.h
|
||||
include/alibabacloud/eais/model/ChangeResourceGroupResult.h
|
||||
include/alibabacloud/eais/model/CreateEaiRequest.h
|
||||
@@ -35,23 +37,35 @@ set(eais_public_header_model
|
||||
include/alibabacloud/eais/model/CreateEaiEcsResult.h
|
||||
include/alibabacloud/eais/model/CreateEaiJupyterRequest.h
|
||||
include/alibabacloud/eais/model/CreateEaiJupyterResult.h
|
||||
include/alibabacloud/eais/model/CreateEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/CreateEaisEiResult.h
|
||||
include/alibabacloud/eais/model/DeleteEaiRequest.h
|
||||
include/alibabacloud/eais/model/DeleteEaiResult.h
|
||||
include/alibabacloud/eais/model/DeleteEaiAllRequest.h
|
||||
include/alibabacloud/eais/model/DeleteEaiAllResult.h
|
||||
include/alibabacloud/eais/model/DeleteEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/DeleteEaisEiResult.h
|
||||
include/alibabacloud/eais/model/DescribeEaisRequest.h
|
||||
include/alibabacloud/eais/model/DescribeEaisResult.h
|
||||
include/alibabacloud/eais/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/eais/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/eais/model/DetachEaiRequest.h
|
||||
include/alibabacloud/eais/model/DetachEaiResult.h
|
||||
include/alibabacloud/eais/model/DetachEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/DetachEaisEiResult.h
|
||||
include/alibabacloud/eais/model/GetInstanceMetricsRequest.h
|
||||
include/alibabacloud/eais/model/GetInstanceMetricsResult.h )
|
||||
include/alibabacloud/eais/model/GetInstanceMetricsResult.h
|
||||
include/alibabacloud/eais/model/StartEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/StartEaisEiResult.h
|
||||
include/alibabacloud/eais/model/StopEaisEiRequest.h
|
||||
include/alibabacloud/eais/model/StopEaisEiResult.h )
|
||||
|
||||
set(eais_src
|
||||
src/EaisClient.cc
|
||||
src/model/AttachEaiRequest.cc
|
||||
src/model/AttachEaiResult.cc
|
||||
src/model/AttachEaisEiRequest.cc
|
||||
src/model/AttachEaisEiResult.cc
|
||||
src/model/ChangeResourceGroupRequest.cc
|
||||
src/model/ChangeResourceGroupResult.cc
|
||||
src/model/CreateEaiRequest.cc
|
||||
@@ -64,18 +78,28 @@ set(eais_src
|
||||
src/model/CreateEaiEcsResult.cc
|
||||
src/model/CreateEaiJupyterRequest.cc
|
||||
src/model/CreateEaiJupyterResult.cc
|
||||
src/model/CreateEaisEiRequest.cc
|
||||
src/model/CreateEaisEiResult.cc
|
||||
src/model/DeleteEaiRequest.cc
|
||||
src/model/DeleteEaiResult.cc
|
||||
src/model/DeleteEaiAllRequest.cc
|
||||
src/model/DeleteEaiAllResult.cc
|
||||
src/model/DeleteEaisEiRequest.cc
|
||||
src/model/DeleteEaisEiResult.cc
|
||||
src/model/DescribeEaisRequest.cc
|
||||
src/model/DescribeEaisResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DetachEaiRequest.cc
|
||||
src/model/DetachEaiResult.cc
|
||||
src/model/DetachEaisEiRequest.cc
|
||||
src/model/DetachEaisEiResult.cc
|
||||
src/model/GetInstanceMetricsRequest.cc
|
||||
src/model/GetInstanceMetricsResult.cc )
|
||||
src/model/GetInstanceMetricsResult.cc
|
||||
src/model/StartEaisEiRequest.cc
|
||||
src/model/StartEaisEiResult.cc
|
||||
src/model/StopEaisEiRequest.cc
|
||||
src/model/StopEaisEiResult.cc )
|
||||
|
||||
add_library(eais ${LIB_TYPE}
|
||||
${eais_public_header}
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "EaisExport.h"
|
||||
#include "model/AttachEaiRequest.h"
|
||||
#include "model/AttachEaiResult.h"
|
||||
#include "model/AttachEaisEiRequest.h"
|
||||
#include "model/AttachEaisEiResult.h"
|
||||
#include "model/ChangeResourceGroupRequest.h"
|
||||
#include "model/ChangeResourceGroupResult.h"
|
||||
#include "model/CreateEaiRequest.h"
|
||||
@@ -36,18 +38,28 @@
|
||||
#include "model/CreateEaiEcsResult.h"
|
||||
#include "model/CreateEaiJupyterRequest.h"
|
||||
#include "model/CreateEaiJupyterResult.h"
|
||||
#include "model/CreateEaisEiRequest.h"
|
||||
#include "model/CreateEaisEiResult.h"
|
||||
#include "model/DeleteEaiRequest.h"
|
||||
#include "model/DeleteEaiResult.h"
|
||||
#include "model/DeleteEaiAllRequest.h"
|
||||
#include "model/DeleteEaiAllResult.h"
|
||||
#include "model/DeleteEaisEiRequest.h"
|
||||
#include "model/DeleteEaisEiResult.h"
|
||||
#include "model/DescribeEaisRequest.h"
|
||||
#include "model/DescribeEaisResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DetachEaiRequest.h"
|
||||
#include "model/DetachEaiResult.h"
|
||||
#include "model/DetachEaisEiRequest.h"
|
||||
#include "model/DetachEaisEiResult.h"
|
||||
#include "model/GetInstanceMetricsRequest.h"
|
||||
#include "model/GetInstanceMetricsResult.h"
|
||||
#include "model/StartEaisEiRequest.h"
|
||||
#include "model/StartEaisEiResult.h"
|
||||
#include "model/StopEaisEiRequest.h"
|
||||
#include "model/StopEaisEiResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -60,6 +72,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AttachEaiResult> AttachEaiOutcome;
|
||||
typedef std::future<AttachEaiOutcome> AttachEaiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::AttachEaiRequest&, const AttachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachEaiAsyncHandler;
|
||||
typedef Outcome<Error, Model::AttachEaisEiResult> AttachEaisEiOutcome;
|
||||
typedef std::future<AttachEaisEiOutcome> AttachEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::AttachEaisEiRequest&, const AttachEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachEaisEiAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeResourceGroupResult> ChangeResourceGroupOutcome;
|
||||
typedef std::future<ChangeResourceGroupOutcome> ChangeResourceGroupOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::ChangeResourceGroupRequest&, const ChangeResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceGroupAsyncHandler;
|
||||
@@ -78,12 +93,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateEaiJupyterResult> CreateEaiJupyterOutcome;
|
||||
typedef std::future<CreateEaiJupyterOutcome> CreateEaiJupyterOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::CreateEaiJupyterRequest&, const CreateEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiJupyterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateEaisEiResult> CreateEaisEiOutcome;
|
||||
typedef std::future<CreateEaisEiOutcome> CreateEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::CreateEaisEiRequest&, const CreateEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaisEiAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteEaiResult> DeleteEaiOutcome;
|
||||
typedef std::future<DeleteEaiOutcome> DeleteEaiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DeleteEaiRequest&, const DeleteEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEaiAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteEaiAllResult> DeleteEaiAllOutcome;
|
||||
typedef std::future<DeleteEaiAllOutcome> DeleteEaiAllOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DeleteEaiAllRequest&, const DeleteEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEaiAllAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteEaisEiResult> DeleteEaisEiOutcome;
|
||||
typedef std::future<DeleteEaisEiOutcome> DeleteEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DeleteEaisEiRequest&, const DeleteEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEaisEiAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEaisResult> DescribeEaisOutcome;
|
||||
typedef std::future<DescribeEaisOutcome> DescribeEaisOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DescribeEaisRequest&, const DescribeEaisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEaisAsyncHandler;
|
||||
@@ -93,9 +114,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetachEaiResult> DetachEaiOutcome;
|
||||
typedef std::future<DetachEaiOutcome> DetachEaiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DetachEaiRequest&, const DetachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachEaiAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachEaisEiResult> DetachEaisEiOutcome;
|
||||
typedef std::future<DetachEaisEiOutcome> DetachEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DetachEaisEiRequest&, const DetachEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachEaisEiAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInstanceMetricsResult> GetInstanceMetricsOutcome;
|
||||
typedef std::future<GetInstanceMetricsOutcome> GetInstanceMetricsOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::GetInstanceMetricsRequest&, const GetInstanceMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartEaisEiResult> StartEaisEiOutcome;
|
||||
typedef std::future<StartEaisEiOutcome> StartEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::StartEaisEiRequest&, const StartEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartEaisEiAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopEaisEiResult> StopEaisEiOutcome;
|
||||
typedef std::future<StopEaisEiOutcome> StopEaisEiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::StopEaisEiRequest&, const StopEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopEaisEiAsyncHandler;
|
||||
|
||||
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -104,6 +134,9 @@ namespace AlibabaCloud
|
||||
AttachEaiOutcome attachEai(const Model::AttachEaiRequest &request)const;
|
||||
void attachEaiAsync(const Model::AttachEaiRequest& request, const AttachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachEaiOutcomeCallable attachEaiCallable(const Model::AttachEaiRequest& request) const;
|
||||
AttachEaisEiOutcome attachEaisEi(const Model::AttachEaisEiRequest &request)const;
|
||||
void attachEaisEiAsync(const Model::AttachEaisEiRequest& request, const AttachEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachEaisEiOutcomeCallable attachEaisEiCallable(const Model::AttachEaisEiRequest& request) const;
|
||||
ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const;
|
||||
void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const;
|
||||
@@ -122,12 +155,18 @@ namespace AlibabaCloud
|
||||
CreateEaiJupyterOutcome createEaiJupyter(const Model::CreateEaiJupyterRequest &request)const;
|
||||
void createEaiJupyterAsync(const Model::CreateEaiJupyterRequest& request, const CreateEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateEaiJupyterOutcomeCallable createEaiJupyterCallable(const Model::CreateEaiJupyterRequest& request) const;
|
||||
CreateEaisEiOutcome createEaisEi(const Model::CreateEaisEiRequest &request)const;
|
||||
void createEaisEiAsync(const Model::CreateEaisEiRequest& request, const CreateEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateEaisEiOutcomeCallable createEaisEiCallable(const Model::CreateEaisEiRequest& request) const;
|
||||
DeleteEaiOutcome deleteEai(const Model::DeleteEaiRequest &request)const;
|
||||
void deleteEaiAsync(const Model::DeleteEaiRequest& request, const DeleteEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteEaiOutcomeCallable deleteEaiCallable(const Model::DeleteEaiRequest& request) const;
|
||||
DeleteEaiAllOutcome deleteEaiAll(const Model::DeleteEaiAllRequest &request)const;
|
||||
void deleteEaiAllAsync(const Model::DeleteEaiAllRequest& request, const DeleteEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteEaiAllOutcomeCallable deleteEaiAllCallable(const Model::DeleteEaiAllRequest& request) const;
|
||||
DeleteEaisEiOutcome deleteEaisEi(const Model::DeleteEaisEiRequest &request)const;
|
||||
void deleteEaisEiAsync(const Model::DeleteEaisEiRequest& request, const DeleteEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteEaisEiOutcomeCallable deleteEaisEiCallable(const Model::DeleteEaisEiRequest& request) const;
|
||||
DescribeEaisOutcome describeEais(const Model::DescribeEaisRequest &request)const;
|
||||
void describeEaisAsync(const Model::DescribeEaisRequest& request, const DescribeEaisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEaisOutcomeCallable describeEaisCallable(const Model::DescribeEaisRequest& request) const;
|
||||
@@ -137,9 +176,18 @@ namespace AlibabaCloud
|
||||
DetachEaiOutcome detachEai(const Model::DetachEaiRequest &request)const;
|
||||
void detachEaiAsync(const Model::DetachEaiRequest& request, const DetachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachEaiOutcomeCallable detachEaiCallable(const Model::DetachEaiRequest& request) const;
|
||||
DetachEaisEiOutcome detachEaisEi(const Model::DetachEaisEiRequest &request)const;
|
||||
void detachEaisEiAsync(const Model::DetachEaisEiRequest& request, const DetachEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachEaisEiOutcomeCallable detachEaisEiCallable(const Model::DetachEaisEiRequest& request) const;
|
||||
GetInstanceMetricsOutcome getInstanceMetrics(const Model::GetInstanceMetricsRequest &request)const;
|
||||
void getInstanceMetricsAsync(const Model::GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceMetricsOutcomeCallable getInstanceMetricsCallable(const Model::GetInstanceMetricsRequest& request) const;
|
||||
StartEaisEiOutcome startEaisEi(const Model::StartEaisEiRequest &request)const;
|
||||
void startEaisEiAsync(const Model::StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartEaisEiOutcomeCallable startEaisEiCallable(const Model::StartEaisEiRequest& request) const;
|
||||
StopEaisEiOutcome stopEaisEi(const Model::StopEaisEiRequest &request)const;
|
||||
void stopEaisEiAsync(const Model::StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopEaisEiOutcomeCallable stopEaisEiCallable(const Model::StopEaisEiRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
51
eais/include/alibabacloud/eais/model/AttachEaisEiRequest.h
Normal file
51
eais/include/alibabacloud/eais/model/AttachEaisEiRequest.h
Normal 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_EAIS_MODEL_ATTACHEAISEIREQUEST_H_
|
||||
#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIREQUEST_H_
|
||||
|
||||
#include <alibabacloud/eais/EaisExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Eais {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_EAIS_EXPORT AttachEaisEiRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AttachEaisEiRequest();
|
||||
~AttachEaisEiRequest();
|
||||
std::string getEiInstanceType() const;
|
||||
void setEiInstanceType(const std::string &eiInstanceType);
|
||||
std::string getClientInstanceId() const;
|
||||
void setClientInstanceId(const std::string &clientInstanceId);
|
||||
std::string getEiInstanceId() const;
|
||||
void setEiInstanceId(const std::string &eiInstanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string eiInstanceType_;
|
||||
std::string clientInstanceId_;
|
||||
std::string eiInstanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Eais
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIREQUEST_H_
|
||||
53
eais/include/alibabacloud/eais/model/AttachEaisEiResult.h
Normal file
53
eais/include/alibabacloud/eais/model/AttachEaisEiResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_EAIS_MODEL_ATTACHEAISEIRESULT_H_
|
||||
#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/eais/EaisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eais
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EAIS_EXPORT AttachEaisEiResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachEaisEiResult();
|
||||
explicit AttachEaisEiResult(const std::string &payload);
|
||||
~AttachEaisEiResult();
|
||||
std::string getEiInstanceId()const;
|
||||
std::string getClientInstanceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string eiInstanceId_;
|
||||
std::string clientInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user