Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -409,6 +409,8 @@ set(dataworks-public_public_header_model
|
|||||||
include/alibabacloud/dataworks-public/model/ListTableThemeResult.h
|
include/alibabacloud/dataworks-public/model/ListTableThemeResult.h
|
||||||
include/alibabacloud/dataworks-public/model/ListTopicsRequest.h
|
include/alibabacloud/dataworks-public/model/ListTopicsRequest.h
|
||||||
include/alibabacloud/dataworks-public/model/ListTopicsResult.h
|
include/alibabacloud/dataworks-public/model/ListTopicsResult.h
|
||||||
|
include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h
|
||||||
|
include/alibabacloud/dataworks-public/model/MountDirectoryResult.h
|
||||||
include/alibabacloud/dataworks-public/model/OfflineNodeRequest.h
|
include/alibabacloud/dataworks-public/model/OfflineNodeRequest.h
|
||||||
include/alibabacloud/dataworks-public/model/OfflineNodeResult.h
|
include/alibabacloud/dataworks-public/model/OfflineNodeResult.h
|
||||||
include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h
|
include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h
|
||||||
@@ -467,6 +469,8 @@ set(dataworks-public_public_header_model
|
|||||||
include/alibabacloud/dataworks-public/model/TopTenElapsedTimeInstanceResult.h
|
include/alibabacloud/dataworks-public/model/TopTenElapsedTimeInstanceResult.h
|
||||||
include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceRequest.h
|
include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceRequest.h
|
||||||
include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceResult.h
|
include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceResult.h
|
||||||
|
include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h
|
||||||
|
include/alibabacloud/dataworks-public/model/UmountDirectoryResult.h
|
||||||
include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h
|
include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h
|
||||||
include/alibabacloud/dataworks-public/model/UpdateBaselineResult.h
|
include/alibabacloud/dataworks-public/model/UpdateBaselineResult.h
|
||||||
include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h
|
include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h
|
||||||
@@ -910,6 +914,8 @@ set(dataworks-public_src
|
|||||||
src/model/ListTableThemeResult.cc
|
src/model/ListTableThemeResult.cc
|
||||||
src/model/ListTopicsRequest.cc
|
src/model/ListTopicsRequest.cc
|
||||||
src/model/ListTopicsResult.cc
|
src/model/ListTopicsResult.cc
|
||||||
|
src/model/MountDirectoryRequest.cc
|
||||||
|
src/model/MountDirectoryResult.cc
|
||||||
src/model/OfflineNodeRequest.cc
|
src/model/OfflineNodeRequest.cc
|
||||||
src/model/OfflineNodeResult.cc
|
src/model/OfflineNodeResult.cc
|
||||||
src/model/PublishDataServiceApiRequest.cc
|
src/model/PublishDataServiceApiRequest.cc
|
||||||
@@ -968,6 +974,8 @@ set(dataworks-public_src
|
|||||||
src/model/TopTenElapsedTimeInstanceResult.cc
|
src/model/TopTenElapsedTimeInstanceResult.cc
|
||||||
src/model/TopTenErrorTimesInstanceRequest.cc
|
src/model/TopTenErrorTimesInstanceRequest.cc
|
||||||
src/model/TopTenErrorTimesInstanceResult.cc
|
src/model/TopTenErrorTimesInstanceResult.cc
|
||||||
|
src/model/UmountDirectoryRequest.cc
|
||||||
|
src/model/UmountDirectoryResult.cc
|
||||||
src/model/UpdateBaselineRequest.cc
|
src/model/UpdateBaselineRequest.cc
|
||||||
src/model/UpdateBaselineResult.cc
|
src/model/UpdateBaselineResult.cc
|
||||||
src/model/UpdateBusinessRequest.cc
|
src/model/UpdateBusinessRequest.cc
|
||||||
|
|||||||
@@ -410,6 +410,8 @@
|
|||||||
#include "model/ListTableThemeResult.h"
|
#include "model/ListTableThemeResult.h"
|
||||||
#include "model/ListTopicsRequest.h"
|
#include "model/ListTopicsRequest.h"
|
||||||
#include "model/ListTopicsResult.h"
|
#include "model/ListTopicsResult.h"
|
||||||
|
#include "model/MountDirectoryRequest.h"
|
||||||
|
#include "model/MountDirectoryResult.h"
|
||||||
#include "model/OfflineNodeRequest.h"
|
#include "model/OfflineNodeRequest.h"
|
||||||
#include "model/OfflineNodeResult.h"
|
#include "model/OfflineNodeResult.h"
|
||||||
#include "model/PublishDataServiceApiRequest.h"
|
#include "model/PublishDataServiceApiRequest.h"
|
||||||
@@ -468,6 +470,8 @@
|
|||||||
#include "model/TopTenElapsedTimeInstanceResult.h"
|
#include "model/TopTenElapsedTimeInstanceResult.h"
|
||||||
#include "model/TopTenErrorTimesInstanceRequest.h"
|
#include "model/TopTenErrorTimesInstanceRequest.h"
|
||||||
#include "model/TopTenErrorTimesInstanceResult.h"
|
#include "model/TopTenErrorTimesInstanceResult.h"
|
||||||
|
#include "model/UmountDirectoryRequest.h"
|
||||||
|
#include "model/UmountDirectoryResult.h"
|
||||||
#include "model/UpdateBaselineRequest.h"
|
#include "model/UpdateBaselineRequest.h"
|
||||||
#include "model/UpdateBaselineResult.h"
|
#include "model/UpdateBaselineResult.h"
|
||||||
#include "model/UpdateBusinessRequest.h"
|
#include "model/UpdateBusinessRequest.h"
|
||||||
@@ -1111,6 +1115,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListTopicsResult> ListTopicsOutcome;
|
typedef Outcome<Error, Model::ListTopicsResult> ListTopicsOutcome;
|
||||||
typedef std::future<ListTopicsOutcome> ListTopicsOutcomeCallable;
|
typedef std::future<ListTopicsOutcome> ListTopicsOutcomeCallable;
|
||||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListTopicsRequest&, const ListTopicsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTopicsAsyncHandler;
|
typedef std::function<void(const Dataworks_publicClient*, const Model::ListTopicsRequest&, const ListTopicsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTopicsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::MountDirectoryResult> MountDirectoryOutcome;
|
||||||
|
typedef std::future<MountDirectoryOutcome> MountDirectoryOutcomeCallable;
|
||||||
|
typedef std::function<void(const Dataworks_publicClient*, const Model::MountDirectoryRequest&, const MountDirectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MountDirectoryAsyncHandler;
|
||||||
typedef Outcome<Error, Model::OfflineNodeResult> OfflineNodeOutcome;
|
typedef Outcome<Error, Model::OfflineNodeResult> OfflineNodeOutcome;
|
||||||
typedef std::future<OfflineNodeOutcome> OfflineNodeOutcomeCallable;
|
typedef std::future<OfflineNodeOutcome> OfflineNodeOutcomeCallable;
|
||||||
typedef std::function<void(const Dataworks_publicClient*, const Model::OfflineNodeRequest&, const OfflineNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OfflineNodeAsyncHandler;
|
typedef std::function<void(const Dataworks_publicClient*, const Model::OfflineNodeRequest&, const OfflineNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OfflineNodeAsyncHandler;
|
||||||
@@ -1198,6 +1205,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::TopTenErrorTimesInstanceResult> TopTenErrorTimesInstanceOutcome;
|
typedef Outcome<Error, Model::TopTenErrorTimesInstanceResult> TopTenErrorTimesInstanceOutcome;
|
||||||
typedef std::future<TopTenErrorTimesInstanceOutcome> TopTenErrorTimesInstanceOutcomeCallable;
|
typedef std::future<TopTenErrorTimesInstanceOutcome> TopTenErrorTimesInstanceOutcomeCallable;
|
||||||
typedef std::function<void(const Dataworks_publicClient*, const Model::TopTenErrorTimesInstanceRequest&, const TopTenErrorTimesInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TopTenErrorTimesInstanceAsyncHandler;
|
typedef std::function<void(const Dataworks_publicClient*, const Model::TopTenErrorTimesInstanceRequest&, const TopTenErrorTimesInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TopTenErrorTimesInstanceAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UmountDirectoryResult> UmountDirectoryOutcome;
|
||||||
|
typedef std::future<UmountDirectoryOutcome> UmountDirectoryOutcomeCallable;
|
||||||
|
typedef std::function<void(const Dataworks_publicClient*, const Model::UmountDirectoryRequest&, const UmountDirectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UmountDirectoryAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateBaselineResult> UpdateBaselineOutcome;
|
typedef Outcome<Error, Model::UpdateBaselineResult> UpdateBaselineOutcome;
|
||||||
typedef std::future<UpdateBaselineOutcome> UpdateBaselineOutcomeCallable;
|
typedef std::future<UpdateBaselineOutcome> UpdateBaselineOutcomeCallable;
|
||||||
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateBaselineRequest&, const UpdateBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateBaselineAsyncHandler;
|
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateBaselineRequest&, const UpdateBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateBaselineAsyncHandler;
|
||||||
@@ -1863,6 +1873,9 @@ namespace AlibabaCloud
|
|||||||
ListTopicsOutcome listTopics(const Model::ListTopicsRequest &request)const;
|
ListTopicsOutcome listTopics(const Model::ListTopicsRequest &request)const;
|
||||||
void listTopicsAsync(const Model::ListTopicsRequest& request, const ListTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listTopicsAsync(const Model::ListTopicsRequest& request, const ListTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListTopicsOutcomeCallable listTopicsCallable(const Model::ListTopicsRequest& request) const;
|
ListTopicsOutcomeCallable listTopicsCallable(const Model::ListTopicsRequest& request) const;
|
||||||
|
MountDirectoryOutcome mountDirectory(const Model::MountDirectoryRequest &request)const;
|
||||||
|
void mountDirectoryAsync(const Model::MountDirectoryRequest& request, const MountDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
MountDirectoryOutcomeCallable mountDirectoryCallable(const Model::MountDirectoryRequest& request) const;
|
||||||
OfflineNodeOutcome offlineNode(const Model::OfflineNodeRequest &request)const;
|
OfflineNodeOutcome offlineNode(const Model::OfflineNodeRequest &request)const;
|
||||||
void offlineNodeAsync(const Model::OfflineNodeRequest& request, const OfflineNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void offlineNodeAsync(const Model::OfflineNodeRequest& request, const OfflineNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
OfflineNodeOutcomeCallable offlineNodeCallable(const Model::OfflineNodeRequest& request) const;
|
OfflineNodeOutcomeCallable offlineNodeCallable(const Model::OfflineNodeRequest& request) const;
|
||||||
@@ -1950,6 +1963,9 @@ namespace AlibabaCloud
|
|||||||
TopTenErrorTimesInstanceOutcome topTenErrorTimesInstance(const Model::TopTenErrorTimesInstanceRequest &request)const;
|
TopTenErrorTimesInstanceOutcome topTenErrorTimesInstance(const Model::TopTenErrorTimesInstanceRequest &request)const;
|
||||||
void topTenErrorTimesInstanceAsync(const Model::TopTenErrorTimesInstanceRequest& request, const TopTenErrorTimesInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void topTenErrorTimesInstanceAsync(const Model::TopTenErrorTimesInstanceRequest& request, const TopTenErrorTimesInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
TopTenErrorTimesInstanceOutcomeCallable topTenErrorTimesInstanceCallable(const Model::TopTenErrorTimesInstanceRequest& request) const;
|
TopTenErrorTimesInstanceOutcomeCallable topTenErrorTimesInstanceCallable(const Model::TopTenErrorTimesInstanceRequest& request) const;
|
||||||
|
UmountDirectoryOutcome umountDirectory(const Model::UmountDirectoryRequest &request)const;
|
||||||
|
void umountDirectoryAsync(const Model::UmountDirectoryRequest& request, const UmountDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UmountDirectoryOutcomeCallable umountDirectoryCallable(const Model::UmountDirectoryRequest& request) const;
|
||||||
UpdateBaselineOutcome updateBaseline(const Model::UpdateBaselineRequest &request)const;
|
UpdateBaselineOutcome updateBaseline(const Model::UpdateBaselineRequest &request)const;
|
||||||
void updateBaselineAsync(const Model::UpdateBaselineRequest& request, const UpdateBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateBaselineAsync(const Model::UpdateBaselineRequest& request, const UpdateBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateBaselineOutcomeCallable updateBaselineCallable(const Model::UpdateBaselineRequest& request) const;
|
UpdateBaselineOutcomeCallable updateBaselineCallable(const Model::UpdateBaselineRequest& request) const;
|
||||||
|
|||||||
@@ -42,24 +42,24 @@ public:
|
|||||||
void setOvertimeSettings(const std::vector<OvertimeSettings> &overtimeSettings);
|
void setOvertimeSettings(const std::vector<OvertimeSettings> &overtimeSettings);
|
||||||
int getPriority() const;
|
int getPriority() const;
|
||||||
void setPriority(int priority);
|
void setPriority(int priority);
|
||||||
std::string getTaskIds() const;
|
|
||||||
void setTaskIds(const std::string &taskIds);
|
|
||||||
std::string getBaselineType() const;
|
std::string getBaselineType() const;
|
||||||
void setBaselineType(const std::string &baselineType);
|
void setBaselineType(const std::string &baselineType);
|
||||||
std::string getBaselineName() const;
|
std::string getBaselineName() const;
|
||||||
void setBaselineName(const std::string &baselineName);
|
void setBaselineName(const std::string &baselineName);
|
||||||
long getProjectId() const;
|
long getProjectId() const;
|
||||||
void setProjectId(long projectId);
|
void setProjectId(long projectId);
|
||||||
|
std::string getNodeIds() const;
|
||||||
|
void setNodeIds(const std::string &nodeIds);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string owner_;
|
std::string owner_;
|
||||||
int alertMarginThreshold_;
|
int alertMarginThreshold_;
|
||||||
std::vector<OvertimeSettings> overtimeSettings_;
|
std::vector<OvertimeSettings> overtimeSettings_;
|
||||||
int priority_;
|
int priority_;
|
||||||
std::string taskIds_;
|
|
||||||
std::string baselineType_;
|
std::string baselineType_;
|
||||||
std::string baselineName_;
|
std::string baselineName_;
|
||||||
long projectId_;
|
long projectId_;
|
||||||
|
std::string nodeIds_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Dataworks_public
|
} // namespace Dataworks_public
|
||||||
|
|||||||
@@ -32,24 +32,24 @@ public:
|
|||||||
~CreateBusinessRequest();
|
~CreateBusinessRequest();
|
||||||
std::string getOwner() const;
|
std::string getOwner() const;
|
||||||
void setOwner(const std::string &owner);
|
void setOwner(const std::string &owner);
|
||||||
std::string getBusinessName() const;
|
|
||||||
void setBusinessName(const std::string &businessName);
|
|
||||||
std::string getDescription() const;
|
std::string getDescription() const;
|
||||||
void setDescription(const std::string &description);
|
void setDescription(const std::string &description);
|
||||||
|
std::string getProjectIdentifier() const;
|
||||||
|
void setProjectIdentifier(const std::string &projectIdentifier);
|
||||||
|
std::string getBusinessName() const;
|
||||||
|
void setBusinessName(const std::string &businessName);
|
||||||
long getProjectId() const;
|
long getProjectId() const;
|
||||||
void setProjectId(long projectId);
|
void setProjectId(long projectId);
|
||||||
std::string getUseType() const;
|
std::string getUseType() const;
|
||||||
void setUseType(const std::string &useType);
|
void setUseType(const std::string &useType);
|
||||||
std::string getProjectIdentifier() const;
|
|
||||||
void setProjectIdentifier(const std::string &projectIdentifier);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string owner_;
|
std::string owner_;
|
||||||
std::string businessName_;
|
|
||||||
std::string description_;
|
std::string description_;
|
||||||
|
std::string projectIdentifier_;
|
||||||
|
std::string businessName_;
|
||||||
long projectId_;
|
long projectId_;
|
||||||
std::string useType_;
|
std::string useType_;
|
||||||
std::string projectIdentifier_;
|
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Dataworks_public
|
} // namespace Dataworks_public
|
||||||
|
|||||||
@@ -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_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYREQUEST_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 MountDirectoryRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
MountDirectoryRequest();
|
||||||
|
~MountDirectoryRequest();
|
||||||
|
std::string getTargetType() const;
|
||||||
|
void setTargetType(const std::string &targetType);
|
||||||
|
std::string getTargetId() const;
|
||||||
|
void setTargetId(const std::string &targetId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string targetType_;
|
||||||
|
std::string targetId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dataworks_public
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYREQUEST_H_
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* 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_MOUNTDIRECTORYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYRESULT_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 MountDirectoryResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
MountDirectoryResult();
|
||||||
|
explicit MountDirectoryResult(const std::string &payload);
|
||||||
|
~MountDirectoryResult();
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
int getData()const;
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int httpStatusCode_;
|
||||||
|
int data_;
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYRESULT_H_
|
||||||
@@ -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_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYREQUEST_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 UmountDirectoryRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
UmountDirectoryRequest();
|
||||||
|
~UmountDirectoryRequest();
|
||||||
|
std::string getTargetType() const;
|
||||||
|
void setTargetType(const std::string &targetType);
|
||||||
|
std::string getTargetId() const;
|
||||||
|
void setTargetId(const std::string &targetId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string targetType_;
|
||||||
|
std::string targetId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dataworks_public
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYREQUEST_H_
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* 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_UMOUNTDIRECTORYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYRESULT_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 UmountDirectoryResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
UmountDirectoryResult();
|
||||||
|
explicit UmountDirectoryResult(const std::string &payload);
|
||||||
|
~UmountDirectoryResult();
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
int getData()const;
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int httpStatusCode_;
|
||||||
|
int data_;
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYRESULT_H_
|
||||||
@@ -58,16 +58,14 @@ public:
|
|||||||
~UpdateBaselineRequest();
|
~UpdateBaselineRequest();
|
||||||
std::string getOwner() const;
|
std::string getOwner() const;
|
||||||
void setOwner(const std::string &owner);
|
void setOwner(const std::string &owner);
|
||||||
|
std::string getRemoveNodeIds() const;
|
||||||
|
void setRemoveNodeIds(const std::string &removeNodeIds);
|
||||||
int getAlertMarginThreshold() const;
|
int getAlertMarginThreshold() const;
|
||||||
void setAlertMarginThreshold(int alertMarginThreshold);
|
void setAlertMarginThreshold(int alertMarginThreshold);
|
||||||
std::string getRemoveTaskIds() const;
|
|
||||||
void setRemoveTaskIds(const std::string &removeTaskIds);
|
|
||||||
std::vector<OvertimeSettings> getOvertimeSettings() const;
|
std::vector<OvertimeSettings> getOvertimeSettings() const;
|
||||||
void setOvertimeSettings(const std::vector<OvertimeSettings> &overtimeSettings);
|
void setOvertimeSettings(const std::vector<OvertimeSettings> &overtimeSettings);
|
||||||
int getPriority() const;
|
int getPriority() const;
|
||||||
void setPriority(int priority);
|
void setPriority(int priority);
|
||||||
std::string getTaskIds() const;
|
|
||||||
void setTaskIds(const std::string &taskIds);
|
|
||||||
long getBaselineId() const;
|
long getBaselineId() const;
|
||||||
void setBaselineId(long baselineId);
|
void setBaselineId(long baselineId);
|
||||||
bool getEnabled() const;
|
bool getEnabled() const;
|
||||||
@@ -82,14 +80,15 @@ public:
|
|||||||
void setBaselineName(const std::string &baselineName);
|
void setBaselineName(const std::string &baselineName);
|
||||||
long getProjectId() const;
|
long getProjectId() const;
|
||||||
void setProjectId(long projectId);
|
void setProjectId(long projectId);
|
||||||
|
std::string getNodeIds() const;
|
||||||
|
void setNodeIds(const std::string &nodeIds);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string owner_;
|
std::string owner_;
|
||||||
|
std::string removeNodeIds_;
|
||||||
int alertMarginThreshold_;
|
int alertMarginThreshold_;
|
||||||
std::string removeTaskIds_;
|
|
||||||
std::vector<OvertimeSettings> overtimeSettings_;
|
std::vector<OvertimeSettings> overtimeSettings_;
|
||||||
int priority_;
|
int priority_;
|
||||||
std::string taskIds_;
|
|
||||||
long baselineId_;
|
long baselineId_;
|
||||||
bool enabled_;
|
bool enabled_;
|
||||||
std::string baselineType_;
|
std::string baselineType_;
|
||||||
@@ -97,6 +96,7 @@ private:
|
|||||||
std::vector<AlertSettings> alertSettings_;
|
std::vector<AlertSettings> alertSettings_;
|
||||||
std::string baselineName_;
|
std::string baselineName_;
|
||||||
long projectId_;
|
long projectId_;
|
||||||
|
std::string nodeIds_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Dataworks_public
|
} // namespace Dataworks_public
|
||||||
|
|||||||
@@ -34,22 +34,22 @@ public:
|
|||||||
void setOwner(const std::string &owner);
|
void setOwner(const std::string &owner);
|
||||||
long getBusinessId() const;
|
long getBusinessId() const;
|
||||||
void setBusinessId(long businessId);
|
void setBusinessId(long businessId);
|
||||||
std::string getBusinessName() const;
|
|
||||||
void setBusinessName(const std::string &businessName);
|
|
||||||
std::string getDescription() const;
|
std::string getDescription() const;
|
||||||
void setDescription(const std::string &description);
|
void setDescription(const std::string &description);
|
||||||
long getProjectId() const;
|
|
||||||
void setProjectId(long projectId);
|
|
||||||
std::string getProjectIdentifier() const;
|
std::string getProjectIdentifier() const;
|
||||||
void setProjectIdentifier(const std::string &projectIdentifier);
|
void setProjectIdentifier(const std::string &projectIdentifier);
|
||||||
|
std::string getBusinessName() const;
|
||||||
|
void setBusinessName(const std::string &businessName);
|
||||||
|
long getProjectId() const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string owner_;
|
std::string owner_;
|
||||||
long businessId_;
|
long businessId_;
|
||||||
std::string businessName_;
|
|
||||||
std::string description_;
|
std::string description_;
|
||||||
long projectId_;
|
|
||||||
std::string projectIdentifier_;
|
std::string projectIdentifier_;
|
||||||
|
std::string businessName_;
|
||||||
|
long projectId_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Dataworks_public
|
} // namespace Dataworks_public
|
||||||
|
|||||||
@@ -7035,6 +7035,42 @@ Dataworks_publicClient::ListTopicsOutcomeCallable Dataworks_publicClient::listTo
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dataworks_publicClient::MountDirectoryOutcome Dataworks_publicClient::mountDirectory(const MountDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return MountDirectoryOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return MountDirectoryOutcome(MountDirectoryResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return MountDirectoryOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Dataworks_publicClient::mountDirectoryAsync(const MountDirectoryRequest& request, const MountDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, mountDirectory(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Dataworks_publicClient::MountDirectoryOutcomeCallable Dataworks_publicClient::mountDirectoryCallable(const MountDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<MountDirectoryOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->mountDirectory(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
Dataworks_publicClient::OfflineNodeOutcome Dataworks_publicClient::offlineNode(const OfflineNodeRequest &request) const
|
Dataworks_publicClient::OfflineNodeOutcome Dataworks_publicClient::offlineNode(const OfflineNodeRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -8079,6 +8115,42 @@ Dataworks_publicClient::TopTenErrorTimesInstanceOutcomeCallable Dataworks_public
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dataworks_publicClient::UmountDirectoryOutcome Dataworks_publicClient::umountDirectory(const UmountDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UmountDirectoryOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UmountDirectoryOutcome(UmountDirectoryResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UmountDirectoryOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Dataworks_publicClient::umountDirectoryAsync(const UmountDirectoryRequest& request, const UmountDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, umountDirectory(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Dataworks_publicClient::UmountDirectoryOutcomeCallable Dataworks_publicClient::umountDirectoryCallable(const UmountDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UmountDirectoryOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->umountDirectory(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
Dataworks_publicClient::UpdateBaselineOutcome Dataworks_publicClient::updateBaseline(const UpdateBaselineRequest &request) const
|
Dataworks_publicClient::UpdateBaselineOutcome Dataworks_publicClient::updateBaseline(const UpdateBaselineRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -66,15 +66,6 @@ void CreateBaselineRequest::setPriority(int priority) {
|
|||||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateBaselineRequest::getTaskIds() const {
|
|
||||||
return taskIds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CreateBaselineRequest::setTaskIds(const std::string &taskIds) {
|
|
||||||
taskIds_ = taskIds;
|
|
||||||
setBodyParameter(std::string("TaskIds"), taskIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CreateBaselineRequest::getBaselineType() const {
|
std::string CreateBaselineRequest::getBaselineType() const {
|
||||||
return baselineType_;
|
return baselineType_;
|
||||||
}
|
}
|
||||||
@@ -102,3 +93,12 @@ void CreateBaselineRequest::setProjectId(long projectId) {
|
|||||||
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateBaselineRequest::getNodeIds() const {
|
||||||
|
return nodeIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateBaselineRequest::setNodeIds(const std::string &nodeIds) {
|
||||||
|
nodeIds_ = nodeIds;
|
||||||
|
setBodyParameter(std::string("NodeIds"), nodeIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,15 +34,6 @@ void CreateBusinessRequest::setOwner(const std::string &owner) {
|
|||||||
setBodyParameter(std::string("Owner"), owner);
|
setBodyParameter(std::string("Owner"), owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateBusinessRequest::getBusinessName() const {
|
|
||||||
return businessName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CreateBusinessRequest::setBusinessName(const std::string &businessName) {
|
|
||||||
businessName_ = businessName;
|
|
||||||
setBodyParameter(std::string("BusinessName"), businessName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CreateBusinessRequest::getDescription() const {
|
std::string CreateBusinessRequest::getDescription() const {
|
||||||
return description_;
|
return description_;
|
||||||
}
|
}
|
||||||
@@ -52,6 +43,24 @@ void CreateBusinessRequest::setDescription(const std::string &description) {
|
|||||||
setBodyParameter(std::string("Description"), description);
|
setBodyParameter(std::string("Description"), description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateBusinessRequest::getProjectIdentifier() const {
|
||||||
|
return projectIdentifier_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateBusinessRequest::setProjectIdentifier(const std::string &projectIdentifier) {
|
||||||
|
projectIdentifier_ = projectIdentifier;
|
||||||
|
setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateBusinessRequest::getBusinessName() const {
|
||||||
|
return businessName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateBusinessRequest::setBusinessName(const std::string &businessName) {
|
||||||
|
businessName_ = businessName;
|
||||||
|
setBodyParameter(std::string("BusinessName"), businessName);
|
||||||
|
}
|
||||||
|
|
||||||
long CreateBusinessRequest::getProjectId() const {
|
long CreateBusinessRequest::getProjectId() const {
|
||||||
return projectId_;
|
return projectId_;
|
||||||
}
|
}
|
||||||
@@ -70,12 +79,3 @@ void CreateBusinessRequest::setUseType(const std::string &useType) {
|
|||||||
setBodyParameter(std::string("UseType"), useType);
|
setBodyParameter(std::string("UseType"), useType);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateBusinessRequest::getProjectIdentifier() const {
|
|
||||||
return projectIdentifier_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CreateBusinessRequest::setProjectIdentifier(const std::string &projectIdentifier) {
|
|
||||||
projectIdentifier_ = projectIdentifier;
|
|
||||||
setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
45
dataworks-public/src/model/MountDirectoryRequest.cc
Normal file
45
dataworks-public/src/model/MountDirectoryRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/dataworks-public/model/MountDirectoryRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dataworks_public::Model::MountDirectoryRequest;
|
||||||
|
|
||||||
|
MountDirectoryRequest::MountDirectoryRequest()
|
||||||
|
: RpcServiceRequest("dataworks-public", "2020-05-18", "MountDirectory") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
MountDirectoryRequest::~MountDirectoryRequest() {}
|
||||||
|
|
||||||
|
std::string MountDirectoryRequest::getTargetType() const {
|
||||||
|
return targetType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MountDirectoryRequest::setTargetType(const std::string &targetType) {
|
||||||
|
targetType_ = targetType;
|
||||||
|
setBodyParameter(std::string("TargetType"), targetType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string MountDirectoryRequest::getTargetId() const {
|
||||||
|
return targetId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MountDirectoryRequest::setTargetId(const std::string &targetId) {
|
||||||
|
targetId_ = targetId;
|
||||||
|
setBodyParameter(std::string("TargetId"), targetId);
|
||||||
|
}
|
||||||
|
|
||||||
79
dataworks-public/src/model/MountDirectoryResult.cc
Normal file
79
dataworks-public/src/model/MountDirectoryResult.cc
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* 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/MountDirectoryResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dataworks_public;
|
||||||
|
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||||
|
|
||||||
|
MountDirectoryResult::MountDirectoryResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
MountDirectoryResult::MountDirectoryResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
MountDirectoryResult::~MountDirectoryResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void MountDirectoryResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = std::stoi(value["Data"].asString());
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int MountDirectoryResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int MountDirectoryResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string MountDirectoryResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string MountDirectoryResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MountDirectoryResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
45
dataworks-public/src/model/UmountDirectoryRequest.cc
Normal file
45
dataworks-public/src/model/UmountDirectoryRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/dataworks-public/model/UmountDirectoryRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dataworks_public::Model::UmountDirectoryRequest;
|
||||||
|
|
||||||
|
UmountDirectoryRequest::UmountDirectoryRequest()
|
||||||
|
: RpcServiceRequest("dataworks-public", "2020-05-18", "UmountDirectory") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
UmountDirectoryRequest::~UmountDirectoryRequest() {}
|
||||||
|
|
||||||
|
std::string UmountDirectoryRequest::getTargetType() const {
|
||||||
|
return targetType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UmountDirectoryRequest::setTargetType(const std::string &targetType) {
|
||||||
|
targetType_ = targetType;
|
||||||
|
setBodyParameter(std::string("TargetType"), targetType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UmountDirectoryRequest::getTargetId() const {
|
||||||
|
return targetId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UmountDirectoryRequest::setTargetId(const std::string &targetId) {
|
||||||
|
targetId_ = targetId;
|
||||||
|
setBodyParameter(std::string("TargetId"), targetId);
|
||||||
|
}
|
||||||
|
|
||||||
79
dataworks-public/src/model/UmountDirectoryResult.cc
Normal file
79
dataworks-public/src/model/UmountDirectoryResult.cc
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* 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/UmountDirectoryResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dataworks_public;
|
||||||
|
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||||
|
|
||||||
|
UmountDirectoryResult::UmountDirectoryResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UmountDirectoryResult::UmountDirectoryResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UmountDirectoryResult::~UmountDirectoryResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UmountDirectoryResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = std::stoi(value["Data"].asString());
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int UmountDirectoryResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int UmountDirectoryResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UmountDirectoryResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UmountDirectoryResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UmountDirectoryResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -34,6 +34,15 @@ void UpdateBaselineRequest::setOwner(const std::string &owner) {
|
|||||||
setBodyParameter(std::string("Owner"), owner);
|
setBodyParameter(std::string("Owner"), owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateBaselineRequest::getRemoveNodeIds() const {
|
||||||
|
return removeNodeIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateBaselineRequest::setRemoveNodeIds(const std::string &removeNodeIds) {
|
||||||
|
removeNodeIds_ = removeNodeIds;
|
||||||
|
setBodyParameter(std::string("RemoveNodeIds"), removeNodeIds);
|
||||||
|
}
|
||||||
|
|
||||||
int UpdateBaselineRequest::getAlertMarginThreshold() const {
|
int UpdateBaselineRequest::getAlertMarginThreshold() const {
|
||||||
return alertMarginThreshold_;
|
return alertMarginThreshold_;
|
||||||
}
|
}
|
||||||
@@ -43,15 +52,6 @@ void UpdateBaselineRequest::setAlertMarginThreshold(int alertMarginThreshold) {
|
|||||||
setBodyParameter(std::string("AlertMarginThreshold"), std::to_string(alertMarginThreshold));
|
setBodyParameter(std::string("AlertMarginThreshold"), std::to_string(alertMarginThreshold));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateBaselineRequest::getRemoveTaskIds() const {
|
|
||||||
return removeTaskIds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateBaselineRequest::setRemoveTaskIds(const std::string &removeTaskIds) {
|
|
||||||
removeTaskIds_ = removeTaskIds;
|
|
||||||
setBodyParameter(std::string("RemoveTaskIds"), removeTaskIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<UpdateBaselineRequest::OvertimeSettings> UpdateBaselineRequest::getOvertimeSettings() const {
|
std::vector<UpdateBaselineRequest::OvertimeSettings> UpdateBaselineRequest::getOvertimeSettings() const {
|
||||||
return overtimeSettings_;
|
return overtimeSettings_;
|
||||||
}
|
}
|
||||||
@@ -73,15 +73,6 @@ void UpdateBaselineRequest::setPriority(int priority) {
|
|||||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateBaselineRequest::getTaskIds() const {
|
|
||||||
return taskIds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateBaselineRequest::setTaskIds(const std::string &taskIds) {
|
|
||||||
taskIds_ = taskIds;
|
|
||||||
setBodyParameter(std::string("TaskIds"), taskIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
long UpdateBaselineRequest::getBaselineId() const {
|
long UpdateBaselineRequest::getBaselineId() const {
|
||||||
return baselineId_;
|
return baselineId_;
|
||||||
}
|
}
|
||||||
@@ -167,3 +158,12 @@ void UpdateBaselineRequest::setProjectId(long projectId) {
|
|||||||
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateBaselineRequest::getNodeIds() const {
|
||||||
|
return nodeIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateBaselineRequest::setNodeIds(const std::string &nodeIds) {
|
||||||
|
nodeIds_ = nodeIds;
|
||||||
|
setBodyParameter(std::string("NodeIds"), nodeIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,15 +43,6 @@ void UpdateBusinessRequest::setBusinessId(long businessId) {
|
|||||||
setBodyParameter(std::string("BusinessId"), std::to_string(businessId));
|
setBodyParameter(std::string("BusinessId"), std::to_string(businessId));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateBusinessRequest::getBusinessName() const {
|
|
||||||
return businessName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateBusinessRequest::setBusinessName(const std::string &businessName) {
|
|
||||||
businessName_ = businessName;
|
|
||||||
setBodyParameter(std::string("BusinessName"), businessName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string UpdateBusinessRequest::getDescription() const {
|
std::string UpdateBusinessRequest::getDescription() const {
|
||||||
return description_;
|
return description_;
|
||||||
}
|
}
|
||||||
@@ -61,15 +52,6 @@ void UpdateBusinessRequest::setDescription(const std::string &description) {
|
|||||||
setBodyParameter(std::string("Description"), description);
|
setBodyParameter(std::string("Description"), description);
|
||||||
}
|
}
|
||||||
|
|
||||||
long UpdateBusinessRequest::getProjectId() const {
|
|
||||||
return projectId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateBusinessRequest::setProjectId(long projectId) {
|
|
||||||
projectId_ = projectId;
|
|
||||||
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string UpdateBusinessRequest::getProjectIdentifier() const {
|
std::string UpdateBusinessRequest::getProjectIdentifier() const {
|
||||||
return projectIdentifier_;
|
return projectIdentifier_;
|
||||||
}
|
}
|
||||||
@@ -79,3 +61,21 @@ void UpdateBusinessRequest::setProjectIdentifier(const std::string &projectIdent
|
|||||||
setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier);
|
setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateBusinessRequest::getBusinessName() const {
|
||||||
|
return businessName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateBusinessRequest::setBusinessName(const std::string &businessName) {
|
||||||
|
businessName_ = businessName;
|
||||||
|
setBodyParameter(std::string("BusinessName"), businessName);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateBusinessRequest::getProjectId() const {
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateBusinessRequest::setProjectId(long projectId) {
|
||||||
|
projectId_ = projectId;
|
||||||
|
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user