Init Cpp sdk.
This commit is contained in:
@@ -98,6 +98,8 @@
|
||||
#include "model/GetDatabaseResult.h"
|
||||
#include "model/GetFunctionRequest.h"
|
||||
#include "model/GetFunctionResult.h"
|
||||
#include "model/GetLifecycleRuleRequest.h"
|
||||
#include "model/GetLifecycleRuleResult.h"
|
||||
#include "model/GetLockRequest.h"
|
||||
#include "model/GetLockResult.h"
|
||||
#include "model/GetPartitionRequest.h"
|
||||
@@ -327,6 +329,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetFunctionResult> GetFunctionOutcome;
|
||||
typedef std::future<GetFunctionOutcome> GetFunctionOutcomeCallable;
|
||||
typedef std::function<void(const DataLakeClient*, const Model::GetFunctionRequest&, const GetFunctionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFunctionAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLifecycleRuleResult> GetLifecycleRuleOutcome;
|
||||
typedef std::future<GetLifecycleRuleOutcome> GetLifecycleRuleOutcomeCallable;
|
||||
typedef std::function<void(const DataLakeClient*, const Model::GetLifecycleRuleRequest&, const GetLifecycleRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLifecycleRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLockResult> GetLockOutcome;
|
||||
typedef std::future<GetLockOutcome> GetLockOutcomeCallable;
|
||||
typedef std::function<void(const DataLakeClient*, const Model::GetLockRequest&, const GetLockOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLockAsyncHandler;
|
||||
@@ -605,6 +610,9 @@ namespace AlibabaCloud
|
||||
GetFunctionOutcome getFunction(const Model::GetFunctionRequest &request)const;
|
||||
void getFunctionAsync(const Model::GetFunctionRequest& request, const GetFunctionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFunctionOutcomeCallable getFunctionCallable(const Model::GetFunctionRequest& request) const;
|
||||
GetLifecycleRuleOutcome getLifecycleRule(const Model::GetLifecycleRuleRequest &request)const;
|
||||
void getLifecycleRuleAsync(const Model::GetLifecycleRuleRequest& request, const GetLifecycleRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLifecycleRuleOutcomeCallable getLifecycleRuleCallable(const Model::GetLifecycleRuleRequest& request) const;
|
||||
GetLockOutcome getLock(const Model::GetLockRequest &request)const;
|
||||
void getLockAsync(const Model::GetLockRequest& request, const GetLockAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLockOutcomeCallable getLockCallable(const Model::GetLockRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATALAKE_EXPORT DeleteDatabaseRequest : public RoaServiceRequ
|
||||
public:
|
||||
DeleteDatabaseRequest();
|
||||
~DeleteDatabaseRequest();
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::string getCatalogId() const;
|
||||
void setCatalogId(const std::string &catalogId);
|
||||
bool getCascade() const;
|
||||
@@ -38,6 +40,7 @@ public:
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
bool async_;
|
||||
std::string catalogId_;
|
||||
bool cascade_;
|
||||
std::string name_;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
DeleteDatabaseResult();
|
||||
explicit DeleteDatabaseResult(const std::string &payload);
|
||||
~DeleteDatabaseResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DATALAKE_MODEL_GETLIFECYCLERULEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATALAKE_MODEL_GETLIFECYCLERULEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/datalake/DataLakeExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace DataLake {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATALAKE_EXPORT GetLifecycleRuleRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetLifecycleRuleRequest();
|
||||
~GetLifecycleRuleRequest();
|
||||
std::string getBizId() const;
|
||||
void setBizId(const std::string &bizId);
|
||||
std::string getResourceName() const;
|
||||
void setResourceName(const std::string &resourceName);
|
||||
|
||||
private:
|
||||
std::string bizId_;
|
||||
std::string resourceName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace DataLake
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATALAKE_MODEL_GETLIFECYCLERULEREQUEST_H_
|
||||
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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_DATALAKE_MODEL_GETLIFECYCLERULERESULT_H_
|
||||
#define ALIBABACLOUD_DATALAKE_MODEL_GETLIFECYCLERULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/datalake/DataLakeExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DataLake
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATALAKE_EXPORT GetLifecycleRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Workflow
|
||||
{
|
||||
std::string latestInstanceStatus;
|
||||
std::string latestInstanceId;
|
||||
std::string latestEndTime;
|
||||
std::string latestStartTime;
|
||||
};
|
||||
struct WorkflowInstance
|
||||
{
|
||||
struct RuntimeLogsItem
|
||||
{
|
||||
std::string logSummary;
|
||||
std::string gmtCreate;
|
||||
std::string instanceId;
|
||||
std::string bizTime;
|
||||
std::string logContent;
|
||||
std::string logType;
|
||||
std::string logId;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<RuntimeLogsItem> runtimeLogs;
|
||||
long endTime;
|
||||
std::string externalInstanceId;
|
||||
long startTime;
|
||||
int batchProgress;
|
||||
std::string dlfWorkflowId;
|
||||
};
|
||||
std::string description;
|
||||
int bindCount;
|
||||
std::string config;
|
||||
int iaDays;
|
||||
int coldArchiveDays;
|
||||
std::string gmtModified;
|
||||
Workflow workflow;
|
||||
int archiveDays;
|
||||
std::string resourceType;
|
||||
std::string ruleType;
|
||||
WorkflowInstance workflowInstance;
|
||||
std::string workflowId;
|
||||
std::string catalogId;
|
||||
std::string name;
|
||||
std::string gmtCreate;
|
||||
std::string bizId;
|
||||
std::string scheduleStatus;
|
||||
};
|
||||
|
||||
|
||||
GetLifecycleRuleResult();
|
||||
explicit GetLifecycleRuleResult(const std::string &payload);
|
||||
~GetLifecycleRuleResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATALAKE_MODEL_GETLIFECYCLERULERESULT_H_
|
||||
@@ -34,14 +34,19 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct TableProfile
|
||||
{
|
||||
long objectCnt;
|
||||
long accessNum;
|
||||
std::string lastAccessNumTime;
|
||||
std::string lastDdlTime;
|
||||
std::string createTime;
|
||||
long objectSize;
|
||||
std::string databaseName;
|
||||
long fileCnt;
|
||||
bool isPartitioned;
|
||||
std::string lastModifyTime;
|
||||
std::string lastAccessTime;
|
||||
std::string latestDate;
|
||||
std::string latestAccessNumDate;
|
||||
std::string tableName;
|
||||
long recordCnt;
|
||||
long accessNumMonthly;
|
||||
|
||||
Reference in New Issue
Block a user