Add DescribeJobErrorCode.

This commit is contained in:
sdk-team
2019-11-08 15:05:57 +08:00
parent cb3390b9f5
commit 33986d6ed1
28 changed files with 400 additions and 23 deletions

View File

@@ -36,6 +36,8 @@
#include "model/DescribeFullBackupListResult.h"
#include "model/DescribeIncrementBackupListRequest.h"
#include "model/DescribeIncrementBackupListResult.h"
#include "model/DescribeJobErrorCodeRequest.h"
#include "model/DescribeJobErrorCodeResult.h"
#include "model/DescribeNodeCidrListRequest.h"
#include "model/DescribeNodeCidrListResult.h"
#include "model/DescribePreCheckProgressListRequest.h"
@@ -90,6 +92,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeIncrementBackupListResult> DescribeIncrementBackupListOutcome;
typedef std::future<DescribeIncrementBackupListOutcome> DescribeIncrementBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeIncrementBackupListRequest&, const DescribeIncrementBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIncrementBackupListAsyncHandler;
typedef Outcome<Error, Model::DescribeJobErrorCodeResult> DescribeJobErrorCodeOutcome;
typedef std::future<DescribeJobErrorCodeOutcome> DescribeJobErrorCodeOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeJobErrorCodeRequest&, const DescribeJobErrorCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeJobErrorCodeAsyncHandler;
typedef Outcome<Error, Model::DescribeNodeCidrListResult> DescribeNodeCidrListOutcome;
typedef std::future<DescribeNodeCidrListOutcome> DescribeNodeCidrListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeNodeCidrListRequest&, const DescribeNodeCidrListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeCidrListAsyncHandler;
@@ -152,6 +157,9 @@ namespace AlibabaCloud
DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const;
void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const;
DescribeJobErrorCodeOutcome describeJobErrorCode(const Model::DescribeJobErrorCodeRequest &request)const;
void describeJobErrorCodeAsync(const Model::DescribeJobErrorCodeRequest& request, const DescribeJobErrorCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeJobErrorCodeOutcomeCallable describeJobErrorCodeCallable(const Model::DescribeJobErrorCodeRequest& request) const;
DescribeNodeCidrListOutcome describeNodeCidrList(const Model::DescribeNodeCidrListRequest &request)const;
void describeNodeCidrListAsync(const Model::DescribeNodeCidrListRequest& request, const DescribeNodeCidrListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeNodeCidrListOutcomeCallable describeNodeCidrListCallable(const Model::DescribeNodeCidrListRequest& request) const;

View File

@@ -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_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeJobErrorCodeRequest : public RpcServiceRequest
{
public:
DescribeJobErrorCodeRequest();
~DescribeJobErrorCodeRequest();
std::string getClientToken()const;
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);
private:
std::string clientToken_;
std::string language_;
std::string ownerId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* 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_DBS_MODEL_DESCRIBEJOBERRORCODERESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeJobErrorCodeResult : public ServiceResult
{
public:
struct Item
{
std::string jobType;
std::string language;
std::string jobState;
std::string errorCode;
std::string errorMessage;
std::string jobId;
};
DescribeJobErrorCodeResult();
explicit DescribeJobErrorCodeResult(const std::string &payload);
~DescribeJobErrorCodeResult();
Item getItem()const;
int getHttpStatusCode()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
Item item_;
int httpStatusCode_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODERESULT_H_