Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d054dfb79 | ||
|
|
8af4775c5e | ||
|
|
2f6b7ad555 | ||
|
|
faf9b3fb11 | ||
|
|
6642aa94e5 | ||
|
|
0aa44135e7 | ||
|
|
839effe699 | ||
|
|
4e6956c3f2 | ||
|
|
1b2fe667ba | ||
|
|
91c8eee22c | ||
|
|
fd4bd1e797 | ||
|
|
bd27e98c03 | ||
|
|
3a88e60d04 | ||
|
|
83bb5be02b | ||
|
|
beacaac234 | ||
|
|
52ee14ba5d | ||
|
|
b257cba9c3 |
52
CHANGELOG
52
CHANGELOG
@@ -1,3 +1,55 @@
|
||||
2020-08-13 Version: 1.36.574
|
||||
- Release SegmentHalfBody.
|
||||
|
||||
2020-08-13 Version: 1.36.573
|
||||
- Release SegmentHalfBody.
|
||||
|
||||
2020-08-12 Version: 1.36.572
|
||||
- Support corp group api.
|
||||
|
||||
2020-08-12 Version: 1.36.571
|
||||
- Add pipeline status api.
|
||||
|
||||
2020-08-12 Version: 1.36.570
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- SyncDtsStatus API add TaskId parameter.
|
||||
|
||||
2020-08-11 Version: 1.36.569
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-11 Version: 1.36.568
|
||||
- Update DescribeRefreshTask.
|
||||
|
||||
2020-08-11 Version: 1.36.567
|
||||
- Add ResourceGroup in resource snapshot.
|
||||
|
||||
2020-08-10 Version: 1.36.566
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-10 Version: 1.36.565
|
||||
- Add source id for list face detail.
|
||||
|
||||
2020-08-10 Version: 1.36.564
|
||||
- Add extend value for list event detail.
|
||||
|
||||
2020-08-09 Version: 1.36.563
|
||||
- Add extend value for list event detail.
|
||||
|
||||
2020-08-08 Version: 1.36.562
|
||||
- Update SearchImage.
|
||||
|
||||
2020-08-07 Version: 1.36.561
|
||||
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
|
||||
|
||||
2020-08-07 Version: 1.36.560
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-07 Version: 1.36.559
|
||||
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
|
||||
|
||||
2020-08-07 Version: 1.36.558
|
||||
- Add FindServiceList and GetService qps.
|
||||
|
||||
2020-08-06 Version: 1.36.557
|
||||
- Add Smart Cloudauth API.
|
||||
|
||||
|
||||
@@ -27,6 +27,14 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/GetImageDiagnoseRequest.h
|
||||
include/alibabacloud/alimt/model/GetImageDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetImageTranslateRequest.h
|
||||
include/alibabacloud/alimt/model/GetImageTranslateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -44,6 +52,14 @@ set(alimt_src
|
||||
src/model/GetDetectLanguageResult.cc
|
||||
src/model/GetDocTranslateTaskRequest.cc
|
||||
src/model/GetDocTranslateTaskResult.cc
|
||||
src/model/GetImageDiagnoseRequest.cc
|
||||
src/model/GetImageDiagnoseResult.cc
|
||||
src/model/GetImageTranslateRequest.cc
|
||||
src/model/GetImageTranslateResult.cc
|
||||
src/model/GetTitleDiagnoseRequest.cc
|
||||
src/model/GetTitleDiagnoseResult.cc
|
||||
src/model/GetTitleGenerateRequest.cc
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -28,6 +28,14 @@
|
||||
#include "model/GetDetectLanguageResult.h"
|
||||
#include "model/GetDocTranslateTaskRequest.h"
|
||||
#include "model/GetDocTranslateTaskResult.h"
|
||||
#include "model/GetImageDiagnoseRequest.h"
|
||||
#include "model/GetImageDiagnoseResult.h"
|
||||
#include "model/GetImageTranslateRequest.h"
|
||||
#include "model/GetImageTranslateResult.h"
|
||||
#include "model/GetTitleDiagnoseRequest.h"
|
||||
#include "model/GetTitleDiagnoseResult.h"
|
||||
#include "model/GetTitleGenerateRequest.h"
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -54,6 +62,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDocTranslateTaskResult> GetDocTranslateTaskOutcome;
|
||||
typedef std::future<GetDocTranslateTaskOutcome> GetDocTranslateTaskOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetDocTranslateTaskRequest&, const GetDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocTranslateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageDiagnoseResult> GetImageDiagnoseOutcome;
|
||||
typedef std::future<GetImageDiagnoseOutcome> GetImageDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetImageDiagnoseRequest&, const GetImageDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageTranslateResult> GetImageTranslateOutcome;
|
||||
typedef std::future<GetImageTranslateOutcome> GetImageTranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetImageTranslateRequest&, const GetImageTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageTranslateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleDiagnoseResult> GetTitleDiagnoseOutcome;
|
||||
typedef std::future<GetTitleDiagnoseOutcome> GetTitleDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleDiagnoseRequest&, const GetTitleDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
|
||||
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -80,6 +100,18 @@ namespace AlibabaCloud
|
||||
GetDocTranslateTaskOutcome getDocTranslateTask(const Model::GetDocTranslateTaskRequest &request)const;
|
||||
void getDocTranslateTaskAsync(const Model::GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocTranslateTaskOutcomeCallable getDocTranslateTaskCallable(const Model::GetDocTranslateTaskRequest& request) const;
|
||||
GetImageDiagnoseOutcome getImageDiagnose(const Model::GetImageDiagnoseRequest &request)const;
|
||||
void getImageDiagnoseAsync(const Model::GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageDiagnoseOutcomeCallable getImageDiagnoseCallable(const Model::GetImageDiagnoseRequest& request) const;
|
||||
GetImageTranslateOutcome getImageTranslate(const Model::GetImageTranslateRequest &request)const;
|
||||
void getImageTranslateAsync(const Model::GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageTranslateOutcomeCallable getImageTranslateCallable(const Model::GetImageTranslateRequest& request) const;
|
||||
GetTitleDiagnoseOutcome getTitleDiagnose(const Model::GetTitleDiagnoseRequest &request)const;
|
||||
void getTitleDiagnoseAsync(const Model::GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleDiagnoseOutcomeCallable getTitleDiagnoseCallable(const Model::GetTitleDiagnoseRequest& request) const;
|
||||
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
|
||||
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -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_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageDiagnoseRequest();
|
||||
~GetImageDiagnoseRequest();
|
||||
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_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_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string language;
|
||||
};
|
||||
|
||||
|
||||
GetImageDiagnoseResult();
|
||||
explicit GetImageDiagnoseResult(const std::string &payload);
|
||||
~GetImageDiagnoseResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_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_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageTranslateRequest();
|
||||
~GetImageTranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_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_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
GetImageTranslateResult();
|
||||
explicit GetImageTranslateResult(const std::string &payload);
|
||||
~GetImageTranslateResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleDiagnoseRequest();
|
||||
~GetTitleDiagnoseRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string noFirstUppercaseList;
|
||||
std::string containCoreClasses;
|
||||
std::string disableWords;
|
||||
std::string wordCount;
|
||||
std::string overLengthLimit;
|
||||
std::string totalScore;
|
||||
std::string duplicateWords;
|
||||
std::string wordSpelledCorrectError;
|
||||
std::string allUppercaseWords;
|
||||
std::string languageQualityScore;
|
||||
};
|
||||
|
||||
|
||||
GetTitleDiagnoseResult();
|
||||
explicit GetTitleDiagnoseResult(const std::string &payload);
|
||||
~GetTitleDiagnoseResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleGenerateRequest();
|
||||
~GetTitleGenerateRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getAttributes()const;
|
||||
void setAttributes(const std::string& attributes);
|
||||
std::string getHotWords()const;
|
||||
void setHotWords(const std::string& hotWords);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string attributes_;
|
||||
std::string hotWords_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_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_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string titles;
|
||||
};
|
||||
|
||||
|
||||
GetTitleGenerateResult();
|
||||
explicit GetTitleGenerateResult(const std::string &payload);
|
||||
~GetTitleGenerateResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
|
||||
@@ -159,6 +159,150 @@ AlimtClient::GetDocTranslateTaskOutcomeCallable AlimtClient::getDocTranslateTask
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetImageDiagnoseOutcome AlimtClient::getImageDiagnose(const GetImageDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageDiagnoseOutcome(GetImageDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return GetImageDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getImageDiagnoseAsync(const GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetImageDiagnoseOutcomeCallable AlimtClient::getImageDiagnoseCallable(const GetImageDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetImageTranslateOutcome AlimtClient::getImageTranslate(const GetImageTranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageTranslateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageTranslateOutcome(GetImageTranslateResult(outcome.result()));
|
||||
else
|
||||
return GetImageTranslateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getImageTranslateAsync(const GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageTranslate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetImageTranslateOutcomeCallable AlimtClient::getImageTranslateCallable(const GetImageTranslateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageTranslateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageTranslate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleDiagnoseOutcome AlimtClient::getTitleDiagnose(const GetTitleDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleDiagnoseOutcome(GetTitleDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return GetTitleDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleDiagnoseAsync(const GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleDiagnoseOutcomeCallable AlimtClient::getTitleDiagnoseCallable(const GetTitleDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleGenerateOutcome AlimtClient::getTitleGenerate(const GetTitleGenerateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleGenerateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleGenerateOutcome(GetTitleGenerateResult(outcome.result()));
|
||||
else
|
||||
return GetTitleGenerateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleGenerateAsync(const GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleGenerate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallable(const GetTitleGenerateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleGenerateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleGenerate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
alimt/src/model/GetImageDiagnoseRequest.cc
Normal file
51
alimt/src/model/GetImageDiagnoseRequest.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/alimt/model/GetImageDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
|
||||
|
||||
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetImageDiagnoseResult.cc
Normal file
66
alimt/src/model/GetImageDiagnoseResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/alimt/model/GetImageDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetImageDiagnoseResult::GetImageDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageDiagnoseResult::GetImageDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageDiagnoseResult::~GetImageDiagnoseResult()
|
||||
{}
|
||||
|
||||
void GetImageDiagnoseResult::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["Language"].isNull())
|
||||
data_.language = dataNode["Language"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetImageDiagnoseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetImageDiagnoseResult::Data GetImageDiagnoseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetImageDiagnoseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
alimt/src/model/GetImageTranslateRequest.cc
Normal file
73
alimt/src/model/GetImageTranslateRequest.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/alimt/model/GetImageTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
|
||||
|
||||
GetImageTranslateRequest::GetImageTranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageTranslateRequest::~GetImageTranslateRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageTranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetImageTranslateResult.cc
Normal file
66
alimt/src/model/GetImageTranslateResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/alimt/model/GetImageTranslateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetImageTranslateResult::GetImageTranslateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageTranslateResult::GetImageTranslateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageTranslateResult::~GetImageTranslateResult()
|
||||
{}
|
||||
|
||||
void GetImageTranslateResult::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["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetImageTranslateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetImageTranslateResult::Data GetImageTranslateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetImageTranslateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
alimt/src/model/GetTitleDiagnoseRequest.cc
Normal file
84
alimt/src/model/GetTitleDiagnoseRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alimt/model/GetTitleDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
|
||||
|
||||
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
}
|
||||
|
||||
84
alimt/src/model/GetTitleDiagnoseResult.cc
Normal file
84
alimt/src/model/GetTitleDiagnoseResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alimt/model/GetTitleDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTitleDiagnoseResult::GetTitleDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTitleDiagnoseResult::GetTitleDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTitleDiagnoseResult::~GetTitleDiagnoseResult()
|
||||
{}
|
||||
|
||||
void GetTitleDiagnoseResult::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["ContainCoreClasses"].isNull())
|
||||
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
|
||||
if(!dataNode["OverLengthLimit"].isNull())
|
||||
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
|
||||
if(!dataNode["WordSpelledCorrectError"].isNull())
|
||||
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
|
||||
if(!dataNode["AllUppercaseWords"].isNull())
|
||||
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
|
||||
if(!dataNode["NoFirstUppercaseList"].isNull())
|
||||
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
|
||||
if(!dataNode["DuplicateWords"].isNull())
|
||||
data_.duplicateWords = dataNode["DuplicateWords"].asString();
|
||||
if(!dataNode["DisableWords"].isNull())
|
||||
data_.disableWords = dataNode["DisableWords"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = dataNode["TotalScore"].asString();
|
||||
if(!dataNode["LanguageQualityScore"].isNull())
|
||||
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTitleDiagnoseResult::Data GetTitleDiagnoseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTitleDiagnoseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
alimt/src/model/GetTitleGenerateRequest.cc
Normal file
106
alimt/src/model/GetTitleGenerateRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/alimt/model/GetTitleGenerateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
|
||||
|
||||
GetTitleGenerateRequest::GetTitleGenerateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleGenerateRequest::~GetTitleGenerateRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleGenerateRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getAttributes()const
|
||||
{
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
|
||||
{
|
||||
attributes_ = attributes;
|
||||
setBodyParameter("Attributes", attributes);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getHotWords()const
|
||||
{
|
||||
return hotWords_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
|
||||
{
|
||||
hotWords_ = hotWords;
|
||||
setBodyParameter("HotWords", hotWords);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetTitleGenerateResult.cc
Normal file
66
alimt/src/model/GetTitleGenerateResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/alimt/model/GetTitleGenerateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTitleGenerateResult::GetTitleGenerateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTitleGenerateResult::GetTitleGenerateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTitleGenerateResult::~GetTitleGenerateResult()
|
||||
{}
|
||||
|
||||
void GetTitleGenerateResult::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["Titles"].isNull())
|
||||
data_.titles = dataNode["Titles"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTitleGenerateResult::Data GetTitleGenerateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTitleGenerateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -289,6 +289,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeUserUsageDetailDataExportTaskResult.h
|
||||
include/alibabacloud/cdn/model/DescribeUserVipsByDomainRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeUserVipsByDomainResult.h
|
||||
include/alibabacloud/cdn/model/DescribeVerifyContentRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeVerifyContentResult.h
|
||||
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryRequest.h
|
||||
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryResult.h
|
||||
include/alibabacloud/cdn/model/EnableRealtimeLogDeliveryRequest.h
|
||||
@@ -410,7 +412,9 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/UpdateFCTriggerRequest.h
|
||||
include/alibabacloud/cdn/model/UpdateFCTriggerResult.h
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigRequest.h
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h )
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h
|
||||
include/alibabacloud/cdn/model/VerifyDomainOwnerRequest.h
|
||||
include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h )
|
||||
|
||||
set(cdn_src
|
||||
src/CdnClient.cc
|
||||
@@ -682,6 +686,8 @@ set(cdn_src
|
||||
src/model/DescribeUserUsageDetailDataExportTaskResult.cc
|
||||
src/model/DescribeUserVipsByDomainRequest.cc
|
||||
src/model/DescribeUserVipsByDomainResult.cc
|
||||
src/model/DescribeVerifyContentRequest.cc
|
||||
src/model/DescribeVerifyContentResult.cc
|
||||
src/model/DisableRealtimeLogDeliveryRequest.cc
|
||||
src/model/DisableRealtimeLogDeliveryResult.cc
|
||||
src/model/EnableRealtimeLogDeliveryRequest.cc
|
||||
@@ -803,7 +809,9 @@ set(cdn_src
|
||||
src/model/UpdateFCTriggerRequest.cc
|
||||
src/model/UpdateFCTriggerResult.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigRequest.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigResult.cc )
|
||||
src/model/UpdateLiveAppSnapshotConfigResult.cc
|
||||
src/model/VerifyDomainOwnerRequest.cc
|
||||
src/model/VerifyDomainOwnerResult.cc )
|
||||
|
||||
add_library(cdn ${LIB_TYPE}
|
||||
${cdn_public_header}
|
||||
|
||||
@@ -290,6 +290,8 @@
|
||||
#include "model/DescribeUserUsageDetailDataExportTaskResult.h"
|
||||
#include "model/DescribeUserVipsByDomainRequest.h"
|
||||
#include "model/DescribeUserVipsByDomainResult.h"
|
||||
#include "model/DescribeVerifyContentRequest.h"
|
||||
#include "model/DescribeVerifyContentResult.h"
|
||||
#include "model/DisableRealtimeLogDeliveryRequest.h"
|
||||
#include "model/DisableRealtimeLogDeliveryResult.h"
|
||||
#include "model/EnableRealtimeLogDeliveryRequest.h"
|
||||
@@ -412,6 +414,8 @@
|
||||
#include "model/UpdateFCTriggerResult.h"
|
||||
#include "model/UpdateLiveAppSnapshotConfigRequest.h"
|
||||
#include "model/UpdateLiveAppSnapshotConfigResult.h"
|
||||
#include "model/VerifyDomainOwnerRequest.h"
|
||||
#include "model/VerifyDomainOwnerResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -823,6 +827,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeUserVipsByDomainResult> DescribeUserVipsByDomainOutcome;
|
||||
typedef std::future<DescribeUserVipsByDomainOutcome> DescribeUserVipsByDomainOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeUserVipsByDomainRequest&, const DescribeUserVipsByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserVipsByDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyContentResult> DescribeVerifyContentOutcome;
|
||||
typedef std::future<DescribeVerifyContentOutcome> DescribeVerifyContentOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeVerifyContentRequest&, const DescribeVerifyContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyContentAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableRealtimeLogDeliveryResult> DisableRealtimeLogDeliveryOutcome;
|
||||
typedef std::future<DisableRealtimeLogDeliveryOutcome> DisableRealtimeLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DisableRealtimeLogDeliveryRequest&, const DisableRealtimeLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableRealtimeLogDeliveryAsyncHandler;
|
||||
@@ -1006,6 +1013,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLiveAppSnapshotConfigResult> UpdateLiveAppSnapshotConfigOutcome;
|
||||
typedef std::future<UpdateLiveAppSnapshotConfigOutcome> UpdateLiveAppSnapshotConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::UpdateLiveAppSnapshotConfigRequest&, const UpdateLiveAppSnapshotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveAppSnapshotConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyDomainOwnerResult> VerifyDomainOwnerOutcome;
|
||||
typedef std::future<VerifyDomainOwnerOutcome> VerifyDomainOwnerOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::VerifyDomainOwnerRequest&, const VerifyDomainOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDomainOwnerAsyncHandler;
|
||||
|
||||
CdnClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CdnClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -1413,6 +1423,9 @@ namespace AlibabaCloud
|
||||
DescribeUserVipsByDomainOutcome describeUserVipsByDomain(const Model::DescribeUserVipsByDomainRequest &request)const;
|
||||
void describeUserVipsByDomainAsync(const Model::DescribeUserVipsByDomainRequest& request, const DescribeUserVipsByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserVipsByDomainOutcomeCallable describeUserVipsByDomainCallable(const Model::DescribeUserVipsByDomainRequest& request) const;
|
||||
DescribeVerifyContentOutcome describeVerifyContent(const Model::DescribeVerifyContentRequest &request)const;
|
||||
void describeVerifyContentAsync(const Model::DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyContentOutcomeCallable describeVerifyContentCallable(const Model::DescribeVerifyContentRequest& request) const;
|
||||
DisableRealtimeLogDeliveryOutcome disableRealtimeLogDelivery(const Model::DisableRealtimeLogDeliveryRequest &request)const;
|
||||
void disableRealtimeLogDeliveryAsync(const Model::DisableRealtimeLogDeliveryRequest& request, const DisableRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableRealtimeLogDeliveryOutcomeCallable disableRealtimeLogDeliveryCallable(const Model::DisableRealtimeLogDeliveryRequest& request) const;
|
||||
@@ -1596,6 +1609,9 @@ namespace AlibabaCloud
|
||||
UpdateLiveAppSnapshotConfigOutcome updateLiveAppSnapshotConfig(const Model::UpdateLiveAppSnapshotConfigRequest &request)const;
|
||||
void updateLiveAppSnapshotConfigAsync(const Model::UpdateLiveAppSnapshotConfigRequest& request, const UpdateLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLiveAppSnapshotConfigOutcomeCallable updateLiveAppSnapshotConfigCallable(const Model::UpdateLiveAppSnapshotConfigRequest& request) const;
|
||||
VerifyDomainOwnerOutcome verifyDomainOwner(const Model::VerifyDomainOwnerRequest &request)const;
|
||||
void verifyDomainOwnerAsync(const Model::VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyDomainOwnerOutcomeCallable verifyDomainOwnerCallable(const Model::VerifyDomainOwnerRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -35,18 +35,12 @@ namespace AlibabaCloud
|
||||
DescribeRefreshTaskByIdRequest();
|
||||
~DescribeRefreshTaskByIdRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string taskId_;
|
||||
long ownerId_;
|
||||
|
||||
|
||||
@@ -49,16 +49,12 @@ namespace AlibabaCloud
|
||||
~DescribeRefreshTaskByIdResult();
|
||||
long getTotalCount()const;
|
||||
std::vector<CDNTask> getTasks()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::vector<CDNTask> tasks_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeVerifyContentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifyContentRequest();
|
||||
~DescribeVerifyContentRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_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_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeVerifyContentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifyContentResult();
|
||||
explicit DescribeVerifyContentResult(const std::string &payload);
|
||||
~DescribeVerifyContentResult();
|
||||
std::string getContent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT VerifyDomainOwnerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifyDomainOwnerRequest();
|
||||
~VerifyDomainOwnerRequest();
|
||||
|
||||
std::string getVerifyType()const;
|
||||
void setVerifyType(const std::string& verifyType);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string verifyType_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
|
||||
51
cdn/include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h
Normal file
51
cdn/include/alibabacloud/cdn/model/VerifyDomainOwnerResult.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_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT VerifyDomainOwnerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VerifyDomainOwnerResult();
|
||||
explicit VerifyDomainOwnerResult(const std::string &payload);
|
||||
~VerifyDomainOwnerResult();
|
||||
std::string getContent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
|
||||
@@ -4875,6 +4875,42 @@ CdnClient::DescribeUserVipsByDomainOutcomeCallable CdnClient::describeUserVipsBy
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeVerifyContentOutcome CdnClient::describeVerifyContent(const DescribeVerifyContentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifyContentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifyContentOutcome(DescribeVerifyContentResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifyContentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeVerifyContentAsync(const DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifyContent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeVerifyContentOutcomeCallable CdnClient::describeVerifyContentCallable(const DescribeVerifyContentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifyContentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifyContent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DisableRealtimeLogDeliveryOutcome CdnClient::disableRealtimeLogDelivery(const DisableRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7071,3 +7107,39 @@ CdnClient::UpdateLiveAppSnapshotConfigOutcomeCallable CdnClient::updateLiveAppSn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::VerifyDomainOwnerOutcome CdnClient::verifyDomainOwner(const VerifyDomainOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifyDomainOwnerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifyDomainOwnerOutcome(VerifyDomainOwnerResult(outcome.result()));
|
||||
else
|
||||
return VerifyDomainOwnerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::verifyDomainOwnerAsync(const VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifyDomainOwner(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::VerifyDomainOwnerOutcomeCallable CdnClient::verifyDomainOwnerCallable(const VerifyDomainOwnerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifyDomainOwnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifyDomainOwner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,28 +27,6 @@ DescribeRefreshTaskByIdRequest::DescribeRefreshTaskByIdRequest() :
|
||||
DescribeRefreshTaskByIdRequest::~DescribeRefreshTaskByIdRequest()
|
||||
{}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRefreshTaskByIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -59,10 +59,6 @@ void DescribeRefreshTaskByIdResult::parse(const std::string &payload)
|
||||
tasksObject.objectType = valueTasksCDNTask["ObjectType"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
@@ -78,13 +74,3 @@ std::vector<DescribeRefreshTaskByIdResult::CDNTask> DescribeRefreshTaskByIdResul
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
51
cdn/src/model/DescribeVerifyContentRequest.cc
Normal file
51
cdn/src/model/DescribeVerifyContentRequest.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/cdn/model/DescribeVerifyContentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeVerifyContentRequest;
|
||||
|
||||
DescribeVerifyContentRequest::DescribeVerifyContentRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeVerifyContent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVerifyContentRequest::~DescribeVerifyContentRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifyContentRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeVerifyContentRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeVerifyContentRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVerifyContentRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
cdn/src/model/DescribeVerifyContentResult.cc
Normal file
51
cdn/src/model/DescribeVerifyContentResult.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/cdn/model/DescribeVerifyContentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeVerifyContentResult::DescribeVerifyContentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVerifyContentResult::DescribeVerifyContentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVerifyContentResult::~DescribeVerifyContentResult()
|
||||
{}
|
||||
|
||||
void DescribeVerifyContentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVerifyContentResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/VerifyDomainOwnerRequest.cc
Normal file
62
cdn/src/model/VerifyDomainOwnerRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/VerifyDomainOwnerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::VerifyDomainOwnerRequest;
|
||||
|
||||
VerifyDomainOwnerRequest::VerifyDomainOwnerRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "VerifyDomainOwner")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyDomainOwnerRequest::~VerifyDomainOwnerRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyDomainOwnerRequest::getVerifyType()const
|
||||
{
|
||||
return verifyType_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setVerifyType(const std::string& verifyType)
|
||||
{
|
||||
verifyType_ = verifyType;
|
||||
setParameter("VerifyType", verifyType);
|
||||
}
|
||||
|
||||
std::string VerifyDomainOwnerRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long VerifyDomainOwnerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
cdn/src/model/VerifyDomainOwnerResult.cc
Normal file
51
cdn/src/model/VerifyDomainOwnerResult.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/cdn/model/VerifyDomainOwnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
VerifyDomainOwnerResult::VerifyDomainOwnerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifyDomainOwnerResult::VerifyDomainOwnerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifyDomainOwnerResult::~VerifyDomainOwnerResult()
|
||||
{}
|
||||
|
||||
void VerifyDomainOwnerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string VerifyDomainOwnerResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ set(csb_public_header
|
||||
set(csb_public_header_model
|
||||
include/alibabacloud/csb/model/ApproveOrderListRequest.h
|
||||
include/alibabacloud/csb/model/ApproveOrderListResult.h
|
||||
include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
|
||||
include/alibabacloud/csb/model/CheckSLRDeleteResult.h
|
||||
include/alibabacloud/csb/model/CheckServiceExistRequest.h
|
||||
include/alibabacloud/csb/model/CheckServiceExistResult.h
|
||||
include/alibabacloud/csb/model/CommitSuccessedServicesRequest.h
|
||||
@@ -75,6 +77,10 @@ set(csb_public_header_model
|
||||
include/alibabacloud/csb/model/FindOrderableListResult.h
|
||||
include/alibabacloud/csb/model/FindOrderedListRequest.h
|
||||
include/alibabacloud/csb/model/FindOrderedListResult.h
|
||||
include/alibabacloud/csb/model/FindOrderedServiceListRequest.h
|
||||
include/alibabacloud/csb/model/FindOrderedServiceListResult.h
|
||||
include/alibabacloud/csb/model/FindOtherInstanceListRequest.h
|
||||
include/alibabacloud/csb/model/FindOtherInstanceListResult.h
|
||||
include/alibabacloud/csb/model/FindProjectListRequest.h
|
||||
include/alibabacloud/csb/model/FindProjectListResult.h
|
||||
include/alibabacloud/csb/model/FindProjectStatisticalDataRequest.h
|
||||
@@ -128,6 +134,8 @@ set(csb_src
|
||||
src/CSBClient.cc
|
||||
src/model/ApproveOrderListRequest.cc
|
||||
src/model/ApproveOrderListResult.cc
|
||||
src/model/CheckSLRDeleteRequest.cc
|
||||
src/model/CheckSLRDeleteResult.cc
|
||||
src/model/CheckServiceExistRequest.cc
|
||||
src/model/CheckServiceExistResult.cc
|
||||
src/model/CommitSuccessedServicesRequest.cc
|
||||
@@ -180,6 +188,10 @@ set(csb_src
|
||||
src/model/FindOrderableListResult.cc
|
||||
src/model/FindOrderedListRequest.cc
|
||||
src/model/FindOrderedListResult.cc
|
||||
src/model/FindOrderedServiceListRequest.cc
|
||||
src/model/FindOrderedServiceListResult.cc
|
||||
src/model/FindOtherInstanceListRequest.cc
|
||||
src/model/FindOtherInstanceListResult.cc
|
||||
src/model/FindProjectListRequest.cc
|
||||
src/model/FindProjectListResult.cc
|
||||
src/model/FindProjectStatisticalDataRequest.cc
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "CSBExport.h"
|
||||
#include "model/ApproveOrderListRequest.h"
|
||||
#include "model/ApproveOrderListResult.h"
|
||||
#include "model/CheckSLRDeleteRequest.h"
|
||||
#include "model/CheckSLRDeleteResult.h"
|
||||
#include "model/CheckServiceExistRequest.h"
|
||||
#include "model/CheckServiceExistResult.h"
|
||||
#include "model/CommitSuccessedServicesRequest.h"
|
||||
@@ -76,6 +78,10 @@
|
||||
#include "model/FindOrderableListResult.h"
|
||||
#include "model/FindOrderedListRequest.h"
|
||||
#include "model/FindOrderedListResult.h"
|
||||
#include "model/FindOrderedServiceListRequest.h"
|
||||
#include "model/FindOrderedServiceListResult.h"
|
||||
#include "model/FindOtherInstanceListRequest.h"
|
||||
#include "model/FindOtherInstanceListResult.h"
|
||||
#include "model/FindProjectListRequest.h"
|
||||
#include "model/FindProjectListResult.h"
|
||||
#include "model/FindProjectStatisticalDataRequest.h"
|
||||
@@ -136,6 +142,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ApproveOrderListResult> ApproveOrderListOutcome;
|
||||
typedef std::future<ApproveOrderListOutcome> ApproveOrderListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::ApproveOrderListRequest&, const ApproveOrderListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderListAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckSLRDeleteResult> CheckSLRDeleteOutcome;
|
||||
typedef std::future<CheckSLRDeleteOutcome> CheckSLRDeleteOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::CheckSLRDeleteRequest&, const CheckSLRDeleteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckSLRDeleteAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckServiceExistResult> CheckServiceExistOutcome;
|
||||
typedef std::future<CheckServiceExistOutcome> CheckServiceExistOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::CheckServiceExistRequest&, const CheckServiceExistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceExistAsyncHandler;
|
||||
@@ -214,6 +223,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::FindOrderedListResult> FindOrderedListOutcome;
|
||||
typedef std::future<FindOrderedListOutcome> FindOrderedListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOrderedListRequest&, const FindOrderedListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOrderedListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindOrderedServiceListResult> FindOrderedServiceListOutcome;
|
||||
typedef std::future<FindOrderedServiceListOutcome> FindOrderedServiceListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOrderedServiceListRequest&, const FindOrderedServiceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOrderedServiceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindOtherInstanceListResult> FindOtherInstanceListOutcome;
|
||||
typedef std::future<FindOtherInstanceListOutcome> FindOtherInstanceListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOtherInstanceListRequest&, const FindOtherInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOtherInstanceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindProjectListResult> FindProjectListOutcome;
|
||||
typedef std::future<FindProjectListOutcome> FindProjectListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindProjectListRequest&, const FindProjectListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindProjectListAsyncHandler;
|
||||
@@ -294,6 +309,9 @@ namespace AlibabaCloud
|
||||
ApproveOrderListOutcome approveOrderList(const Model::ApproveOrderListRequest &request)const;
|
||||
void approveOrderListAsync(const Model::ApproveOrderListRequest& request, const ApproveOrderListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApproveOrderListOutcomeCallable approveOrderListCallable(const Model::ApproveOrderListRequest& request) const;
|
||||
CheckSLRDeleteOutcome checkSLRDelete(const Model::CheckSLRDeleteRequest &request)const;
|
||||
void checkSLRDeleteAsync(const Model::CheckSLRDeleteRequest& request, const CheckSLRDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckSLRDeleteOutcomeCallable checkSLRDeleteCallable(const Model::CheckSLRDeleteRequest& request) const;
|
||||
CheckServiceExistOutcome checkServiceExist(const Model::CheckServiceExistRequest &request)const;
|
||||
void checkServiceExistAsync(const Model::CheckServiceExistRequest& request, const CheckServiceExistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckServiceExistOutcomeCallable checkServiceExistCallable(const Model::CheckServiceExistRequest& request) const;
|
||||
@@ -372,6 +390,12 @@ namespace AlibabaCloud
|
||||
FindOrderedListOutcome findOrderedList(const Model::FindOrderedListRequest &request)const;
|
||||
void findOrderedListAsync(const Model::FindOrderedListRequest& request, const FindOrderedListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOrderedListOutcomeCallable findOrderedListCallable(const Model::FindOrderedListRequest& request) const;
|
||||
FindOrderedServiceListOutcome findOrderedServiceList(const Model::FindOrderedServiceListRequest &request)const;
|
||||
void findOrderedServiceListAsync(const Model::FindOrderedServiceListRequest& request, const FindOrderedServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOrderedServiceListOutcomeCallable findOrderedServiceListCallable(const Model::FindOrderedServiceListRequest& request) const;
|
||||
FindOtherInstanceListOutcome findOtherInstanceList(const Model::FindOtherInstanceListRequest &request)const;
|
||||
void findOtherInstanceListAsync(const Model::FindOtherInstanceListRequest& request, const FindOtherInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOtherInstanceListOutcomeCallable findOtherInstanceListCallable(const Model::FindOtherInstanceListRequest& request) const;
|
||||
FindProjectListOutcome findProjectList(const Model::FindProjectListRequest &request)const;
|
||||
void findProjectListAsync(const Model::FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindProjectListOutcomeCallable findProjectListCallable(const Model::FindProjectListRequest& request) const;
|
||||
|
||||
60
csb/include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
Normal file
60
csb/include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
Normal file
@@ -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_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT CheckSLRDeleteRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckSLRDeleteRequest();
|
||||
~CheckSLRDeleteRequest();
|
||||
|
||||
std::string getDeletionTaskId()const;
|
||||
void setDeletionTaskId(const std::string& deletionTaskId);
|
||||
std::string getAccountId()const;
|
||||
void setAccountId(const std::string& accountId);
|
||||
std::string getSPIRegionId()const;
|
||||
void setSPIRegionId(const std::string& sPIRegionId);
|
||||
std::string getRoleArn()const;
|
||||
void setRoleArn(const std::string& roleArn);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
|
||||
private:
|
||||
std::string deletionTaskId_;
|
||||
std::string accountId_;
|
||||
std::string sPIRegionId_;
|
||||
std::string roleArn_;
|
||||
std::string serviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
62
csb/include/alibabacloud/csb/model/CheckSLRDeleteResult.h
Normal file
62
csb/include/alibabacloud/csb/model/CheckSLRDeleteResult.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_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT CheckSLRDeleteResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RoleUsage
|
||||
{
|
||||
std::string region;
|
||||
std::vector<std::string> resources;
|
||||
};
|
||||
|
||||
|
||||
CheckSLRDeleteResult();
|
||||
explicit CheckSLRDeleteResult(const std::string &payload);
|
||||
~CheckSLRDeleteResult();
|
||||
std::string getMessage()const;
|
||||
bool getDeletable()const;
|
||||
std::vector<RoleUsage> getRoleUsages()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool deletable_;
|
||||
std::vector<RoleUsage> roleUsages_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAlias()const;
|
||||
void setAlias(const std::string& alias);
|
||||
std::string getServiceName()const;
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string projectName_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string alias_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
long getCsbId()const;
|
||||
void setCsbId(long csbId);
|
||||
std::string getBeginDdHHmm()const;
|
||||
void setBeginDdHHmm(const std::string& beginDdHHmm);
|
||||
std::string getEndDdHHmm()const;
|
||||
void setEndDdHHmm(const std::string& endDdHHmm);
|
||||
|
||||
private:
|
||||
long csbId_;
|
||||
std::string beginDdHHmm_;
|
||||
std::string endDdHHmm_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,9 +39,13 @@ namespace AlibabaCloud
|
||||
std::string instanceName;
|
||||
std::string importedName;
|
||||
bool isImported;
|
||||
std::string ownerId;
|
||||
long csbId;
|
||||
std::string groupAddress;
|
||||
std::string edasTenantInfo;
|
||||
long id;
|
||||
int deleted;
|
||||
std::string brokerCmdAddress;
|
||||
std::string brokerAddress;
|
||||
};
|
||||
int currentPage;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAlias()const;
|
||||
void setAlias(const std::string& alias);
|
||||
std::string getServiceName()const;
|
||||
@@ -57,6 +59,7 @@ namespace AlibabaCloud
|
||||
bool showDelOrder_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string alias_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
|
||||
@@ -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_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOrderedServiceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FindOrderedServiceListRequest();
|
||||
~FindOrderedServiceListRequest();
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
bool getShowDelOrder()const;
|
||||
void setShowDelOrder(bool showDelOrder);
|
||||
long getCsbId()const;
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAccessKey()const;
|
||||
void setAccessKey(const std::string& accessKey);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getServiceId()const;
|
||||
void setServiceId(long serviceId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
bool showDelOrder_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string accessKey_;
|
||||
int pageSize_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOrderedServiceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Order
|
||||
{
|
||||
struct SlaInfo
|
||||
{
|
||||
long qps;
|
||||
long qph;
|
||||
};
|
||||
int orderStatus;
|
||||
long gmtCreate;
|
||||
long credentialGroupId;
|
||||
std::string serviceName;
|
||||
std::string projectName;
|
||||
int serviceStatus;
|
||||
std::string credentialGroupName;
|
||||
long gmtModified;
|
||||
std::string serviceVersion;
|
||||
long id;
|
||||
SlaInfo slaInfo;
|
||||
std::string serviceId;
|
||||
};
|
||||
int currentPage;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<Order> orderList;
|
||||
};
|
||||
|
||||
|
||||
FindOrderedServiceListResult();
|
||||
explicit FindOrderedServiceListResult(const std::string &payload);
|
||||
~FindOrderedServiceListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOtherInstanceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FindOtherInstanceListRequest();
|
||||
~FindOtherInstanceListRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getSearchTxt()const;
|
||||
void setSearchTxt(const std::string& searchTxt);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
std::string searchTxt_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOtherInstanceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
long gmtCreate;
|
||||
std::string statusStr;
|
||||
std::string description;
|
||||
long ownerId;
|
||||
std::string runStatus;
|
||||
long gmtModified;
|
||||
std::string vpcName;
|
||||
long id;
|
||||
int instanceCategory;
|
||||
std::string name;
|
||||
};
|
||||
int currentPage;
|
||||
int pageNumber;
|
||||
std::vector<Item> itemList;
|
||||
};
|
||||
|
||||
|
||||
FindOtherInstanceListResult();
|
||||
explicit FindOtherInstanceListResult(const std::string &payload);
|
||||
~FindOtherInstanceListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
bool allVisiable;
|
||||
std::string serviceName;
|
||||
bool skipAuth;
|
||||
int qps;
|
||||
std::string alias;
|
||||
std::string userId;
|
||||
std::string routeConfJson;
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace AlibabaCloud
|
||||
std::string ownerId;
|
||||
std::string consumeTypesJSON;
|
||||
bool skipAuth;
|
||||
int qps;
|
||||
std::vector<ServiceVersion> serviceVersionsList;
|
||||
bool ottFlag;
|
||||
std::string interfaceName;
|
||||
|
||||
@@ -87,6 +87,42 @@ CSBClient::ApproveOrderListOutcomeCallable CSBClient::approveOrderListCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::CheckSLRDeleteOutcome CSBClient::checkSLRDelete(const CheckSLRDeleteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckSLRDeleteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckSLRDeleteOutcome(CheckSLRDeleteResult(outcome.result()));
|
||||
else
|
||||
return CheckSLRDeleteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::checkSLRDeleteAsync(const CheckSLRDeleteRequest& request, const CheckSLRDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkSLRDelete(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::CheckSLRDeleteOutcomeCallable CSBClient::checkSLRDeleteCallable(const CheckSLRDeleteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckSLRDeleteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkSLRDelete(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::CheckServiceExistOutcome CSBClient::checkServiceExist(const CheckServiceExistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1059,78 @@ CSBClient::FindOrderedListOutcomeCallable CSBClient::findOrderedListCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindOrderedServiceListOutcome CSBClient::findOrderedServiceList(const FindOrderedServiceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FindOrderedServiceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FindOrderedServiceListOutcome(FindOrderedServiceListResult(outcome.result()));
|
||||
else
|
||||
return FindOrderedServiceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::findOrderedServiceListAsync(const FindOrderedServiceListRequest& request, const FindOrderedServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, findOrderedServiceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::FindOrderedServiceListOutcomeCallable CSBClient::findOrderedServiceListCallable(const FindOrderedServiceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FindOrderedServiceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->findOrderedServiceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindOtherInstanceListOutcome CSBClient::findOtherInstanceList(const FindOtherInstanceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FindOtherInstanceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FindOtherInstanceListOutcome(FindOtherInstanceListResult(outcome.result()));
|
||||
else
|
||||
return FindOtherInstanceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::findOtherInstanceListAsync(const FindOtherInstanceListRequest& request, const FindOtherInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, findOtherInstanceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::FindOtherInstanceListOutcomeCallable CSBClient::findOtherInstanceListCallable(const FindOtherInstanceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FindOtherInstanceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->findOtherInstanceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindProjectListOutcome CSBClient::findProjectList(const FindProjectListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
csb/src/model/CheckSLRDeleteRequest.cc
Normal file
84
csb/src/model/CheckSLRDeleteRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/csb/model/CheckSLRDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CheckSLRDeleteRequest;
|
||||
|
||||
CheckSLRDeleteRequest::CheckSLRDeleteRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CheckSLRDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CheckSLRDeleteRequest::~CheckSLRDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
81
csb/src/model/CheckSLRDeleteResult.cc
Normal file
81
csb/src/model/CheckSLRDeleteResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/csb/model/CheckSLRDeleteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CheckSLRDeleteResult::CheckSLRDeleteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckSLRDeleteResult::CheckSLRDeleteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckSLRDeleteResult::~CheckSLRDeleteResult()
|
||||
{}
|
||||
|
||||
void CheckSLRDeleteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsage"];
|
||||
for (auto valueRoleUsagesRoleUsage : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsage roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsage["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsage["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
roleUsagesObject.resources.push_back(value.asString());
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CheckSLRDeleteResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::vector<CheckSLRDeleteResult::RoleUsage> CheckSLRDeleteResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
int CheckSLRDeleteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void FindApprovalOrderListRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
|
||||
@@ -38,3 +38,25 @@ void FindBrokerSLOHisListRequest::setCsbId(long csbId)
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindBrokerSLOHisListRequest::getBeginDdHHmm()const
|
||||
{
|
||||
return beginDdHHmm_;
|
||||
}
|
||||
|
||||
void FindBrokerSLOHisListRequest::setBeginDdHHmm(const std::string& beginDdHHmm)
|
||||
{
|
||||
beginDdHHmm_ = beginDdHHmm;
|
||||
setParameter("BeginDdHHmm", beginDdHHmm);
|
||||
}
|
||||
|
||||
std::string FindBrokerSLOHisListRequest::getEndDdHHmm()const
|
||||
{
|
||||
return endDdHHmm_;
|
||||
}
|
||||
|
||||
void FindBrokerSLOHisListRequest::setEndDdHHmm(const std::string& endDdHHmm)
|
||||
{
|
||||
endDdHHmm_ = endDdHHmm;
|
||||
setParameter("EndDdHHmm", endDdHHmm);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,14 @@ void FindInstanceNodeListResult::parse(const std::string &payload)
|
||||
instanceNodeObject.edasTenantInfo = dataNodeInstanceNodeListInstanceNode["EdasTenantInfo"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["ImportedName"].isNull())
|
||||
instanceNodeObject.importedName = dataNodeInstanceNodeListInstanceNode["ImportedName"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["CsbId"].isNull())
|
||||
instanceNodeObject.csbId = std::stol(dataNodeInstanceNodeListInstanceNode["CsbId"].asString());
|
||||
if(!dataNodeInstanceNodeListInstanceNode["Deleted"].isNull())
|
||||
instanceNodeObject.deleted = std::stoi(dataNodeInstanceNodeListInstanceNode["Deleted"].asString());
|
||||
if(!dataNodeInstanceNodeListInstanceNode["OwnerId"].isNull())
|
||||
instanceNodeObject.ownerId = dataNodeInstanceNodeListInstanceNode["OwnerId"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["BrokerCmdAddress"].isNull())
|
||||
instanceNodeObject.brokerCmdAddress = dataNodeInstanceNodeListInstanceNode["BrokerCmdAddress"].asString();
|
||||
data_.instanceNodeList.push_back(instanceNodeObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -71,6 +71,17 @@ void FindOrderedListRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
|
||||
139
csb/src/model/FindOrderedServiceListRequest.cc
Normal file
139
csb/src/model/FindOrderedServiceListRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/csb/model/FindOrderedServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOrderedServiceListRequest;
|
||||
|
||||
FindOrderedServiceListRequest::FindOrderedServiceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOrderedServiceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
FindOrderedServiceListRequest::~FindOrderedServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool FindOrderedServiceListRequest::getShowDelOrder()const
|
||||
{
|
||||
return showDelOrder_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setShowDelOrder(bool showDelOrder)
|
||||
{
|
||||
showDelOrder_ = showDelOrder;
|
||||
setParameter("ShowDelOrder", showDelOrder ? "true" : "false");
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
int FindOrderedServiceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getAccessKey()const
|
||||
{
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setAccessKey(const std::string& accessKey)
|
||||
{
|
||||
accessKey_ = accessKey;
|
||||
setParameter("AccessKey", accessKey);
|
||||
}
|
||||
|
||||
int FindOrderedServiceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
103
csb/src/model/FindOrderedServiceListResult.cc
Normal file
103
csb/src/model/FindOrderedServiceListResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/csb/model/FindOrderedServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOrderedServiceListResult::FindOrderedServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOrderedServiceListResult::FindOrderedServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOrderedServiceListResult::~FindOrderedServiceListResult()
|
||||
{}
|
||||
|
||||
void FindOrderedServiceListResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
||||
for (auto dataNodeOrderListOrder : allOrderListNode)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!dataNodeOrderListOrder["ServiceName"].isNull())
|
||||
orderObject.serviceName = dataNodeOrderListOrder["ServiceName"].asString();
|
||||
if(!dataNodeOrderListOrder["ServiceVersion"].isNull())
|
||||
orderObject.serviceVersion = dataNodeOrderListOrder["ServiceVersion"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderStatus"].isNull())
|
||||
orderObject.orderStatus = std::stoi(dataNodeOrderListOrder["OrderStatus"].asString());
|
||||
if(!dataNodeOrderListOrder["GmtCreate"].isNull())
|
||||
orderObject.gmtCreate = std::stol(dataNodeOrderListOrder["GmtCreate"].asString());
|
||||
if(!dataNodeOrderListOrder["ServiceId"].isNull())
|
||||
orderObject.serviceId = dataNodeOrderListOrder["ServiceId"].asString();
|
||||
if(!dataNodeOrderListOrder["ServiceStatus"].isNull())
|
||||
orderObject.serviceStatus = std::stoi(dataNodeOrderListOrder["ServiceStatus"].asString());
|
||||
if(!dataNodeOrderListOrder["CredentialGroupId"].isNull())
|
||||
orderObject.credentialGroupId = std::stol(dataNodeOrderListOrder["CredentialGroupId"].asString());
|
||||
if(!dataNodeOrderListOrder["GmtModified"].isNull())
|
||||
orderObject.gmtModified = std::stol(dataNodeOrderListOrder["GmtModified"].asString());
|
||||
if(!dataNodeOrderListOrder["ProjectName"].isNull())
|
||||
orderObject.projectName = dataNodeOrderListOrder["ProjectName"].asString();
|
||||
if(!dataNodeOrderListOrder["Id"].isNull())
|
||||
orderObject.id = std::stol(dataNodeOrderListOrder["Id"].asString());
|
||||
if(!dataNodeOrderListOrder["CredentialGroupName"].isNull())
|
||||
orderObject.credentialGroupName = dataNodeOrderListOrder["CredentialGroupName"].asString();
|
||||
auto slaInfoNode = value["SlaInfo"];
|
||||
if(!slaInfoNode["Qps"].isNull())
|
||||
orderObject.slaInfo.qps = std::stol(slaInfoNode["Qps"].asString());
|
||||
if(!slaInfoNode["Qph"].isNull())
|
||||
orderObject.slaInfo.qph = std::stol(slaInfoNode["Qph"].asString());
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOrderedServiceListResult::Data FindOrderedServiceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOrderedServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
csb/src/model/FindOtherInstanceListRequest.cc
Normal file
62
csb/src/model/FindOtherInstanceListRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindOtherInstanceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOtherInstanceListRequest;
|
||||
|
||||
FindOtherInstanceListRequest::FindOtherInstanceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOtherInstanceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
FindOtherInstanceListRequest::~FindOtherInstanceListRequest()
|
||||
{}
|
||||
|
||||
int FindOtherInstanceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOtherInstanceListRequest::getSearchTxt()const
|
||||
{
|
||||
return searchTxt_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setSearchTxt(const std::string& searchTxt)
|
||||
{
|
||||
searchTxt_ = searchTxt;
|
||||
setParameter("SearchTxt", searchTxt);
|
||||
}
|
||||
|
||||
int FindOtherInstanceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
csb/src/model/FindOtherInstanceListResult.cc
Normal file
94
csb/src/model/FindOtherInstanceListResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/csb/model/FindOtherInstanceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOtherInstanceListResult::FindOtherInstanceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOtherInstanceListResult::FindOtherInstanceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOtherInstanceListResult::~FindOtherInstanceListResult()
|
||||
{}
|
||||
|
||||
void FindOtherInstanceListResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allItemListNode = dataNode["ItemList"]["Item"];
|
||||
for (auto dataNodeItemListItem : allItemListNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemListItem["Description"].isNull())
|
||||
itemObject.description = dataNodeItemListItem["Description"].asString();
|
||||
if(!dataNodeItemListItem["RunStatus"].isNull())
|
||||
itemObject.runStatus = dataNodeItemListItem["RunStatus"].asString();
|
||||
if(!dataNodeItemListItem["GmtCreate"].isNull())
|
||||
itemObject.gmtCreate = std::stol(dataNodeItemListItem["GmtCreate"].asString());
|
||||
if(!dataNodeItemListItem["GmtModified"].isNull())
|
||||
itemObject.gmtModified = std::stol(dataNodeItemListItem["GmtModified"].asString());
|
||||
if(!dataNodeItemListItem["Id"].isNull())
|
||||
itemObject.id = std::stol(dataNodeItemListItem["Id"].asString());
|
||||
if(!dataNodeItemListItem["InstanceCategory"].isNull())
|
||||
itemObject.instanceCategory = std::stoi(dataNodeItemListItem["InstanceCategory"].asString());
|
||||
if(!dataNodeItemListItem["Name"].isNull())
|
||||
itemObject.name = dataNodeItemListItem["Name"].asString();
|
||||
if(!dataNodeItemListItem["StatusStr"].isNull())
|
||||
itemObject.statusStr = dataNodeItemListItem["StatusStr"].asString();
|
||||
if(!dataNodeItemListItem["OwnerId"].isNull())
|
||||
itemObject.ownerId = std::stol(dataNodeItemListItem["OwnerId"].asString());
|
||||
if(!dataNodeItemListItem["VpcName"].isNull())
|
||||
itemObject.vpcName = dataNodeItemListItem["VpcName"].asString();
|
||||
data_.itemList.push_back(itemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOtherInstanceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOtherInstanceListResult::Data FindOtherInstanceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOtherInstanceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ void FindServiceListResult::parse(const std::string &payload)
|
||||
serviceObject.casTargets = dataNodeServiceListService["CasTargets"].asString();
|
||||
if(!dataNodeServiceListService["RouteConfJson"].isNull())
|
||||
serviceObject.routeConfJson = dataNodeServiceListService["RouteConfJson"].asString();
|
||||
if(!dataNodeServiceListService["Qps"].isNull())
|
||||
serviceObject.qps = std::stoi(dataNodeServiceListService["Qps"].asString());
|
||||
data_.serviceList.push_back(serviceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -117,6 +117,8 @@ void GetServiceResult::parse(const std::string &payload)
|
||||
data_.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true";
|
||||
if(!serviceNode["ValidProvideType"].isNull())
|
||||
data_.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true";
|
||||
if(!serviceNode["Qps"].isNull())
|
||||
data_.service.qps = std::stoi(serviceNode["Qps"].asString());
|
||||
auto allServiceVersionsListNode = serviceNode["ServiceVersionsList"]["ServiceVersion"];
|
||||
for (auto serviceNodeServiceVersionsListServiceVersion : allServiceVersionsListNode)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,8 @@ set(dataworks-public_public_header
|
||||
set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/AbolishDataServiceApiRequest.h
|
||||
include/alibabacloud/dataworks-public/model/AbolishDataServiceApiResult.h
|
||||
include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleRequest.h
|
||||
include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleResult.h
|
||||
include/alibabacloud/dataworks-public/model/AddToMetaCategoryRequest.h
|
||||
include/alibabacloud/dataworks-public/model/AddToMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/CheckMetaPartitionRequest.h
|
||||
@@ -43,6 +45,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/CreateFolderResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateMetaCategoryRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateProjectMemberRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateProjectMemberResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateQualityEntityRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateQualityEntityResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateQualityFollowerRequest.h
|
||||
@@ -69,6 +73,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/DeleteFromMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteMetaCategoryRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteProjectMemberRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteProjectMemberResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteQualityEntityRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteQualityEntityResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteQualityFollowerRequest.h
|
||||
@@ -189,6 +195,12 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/ListNodeIOResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListNodesRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListNodesResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectMembersRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectsRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListProjectsResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListQualityRulesRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListQualityRulesResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListRemindsRequest.h
|
||||
@@ -199,6 +211,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/ListTopicsResult.h
|
||||
include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h
|
||||
include/alibabacloud/dataworks-public/model/PublishDataServiceApiResult.h
|
||||
include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h
|
||||
include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h
|
||||
include/alibabacloud/dataworks-public/model/RestartInstanceRequest.h
|
||||
include/alibabacloud/dataworks-public/model/RestartInstanceResult.h
|
||||
include/alibabacloud/dataworks-public/model/ResumeInstanceRequest.h
|
||||
@@ -238,6 +252,8 @@ set(dataworks-public_src
|
||||
src/Dataworks-publicClient.cc
|
||||
src/model/AbolishDataServiceApiRequest.cc
|
||||
src/model/AbolishDataServiceApiResult.cc
|
||||
src/model/AddProjectMemberToRoleRequest.cc
|
||||
src/model/AddProjectMemberToRoleResult.cc
|
||||
src/model/AddToMetaCategoryRequest.cc
|
||||
src/model/AddToMetaCategoryResult.cc
|
||||
src/model/CheckMetaPartitionRequest.cc
|
||||
@@ -258,6 +274,8 @@ set(dataworks-public_src
|
||||
src/model/CreateFolderResult.cc
|
||||
src/model/CreateMetaCategoryRequest.cc
|
||||
src/model/CreateMetaCategoryResult.cc
|
||||
src/model/CreateProjectMemberRequest.cc
|
||||
src/model/CreateProjectMemberResult.cc
|
||||
src/model/CreateQualityEntityRequest.cc
|
||||
src/model/CreateQualityEntityResult.cc
|
||||
src/model/CreateQualityFollowerRequest.cc
|
||||
@@ -284,6 +302,8 @@ set(dataworks-public_src
|
||||
src/model/DeleteFromMetaCategoryResult.cc
|
||||
src/model/DeleteMetaCategoryRequest.cc
|
||||
src/model/DeleteMetaCategoryResult.cc
|
||||
src/model/DeleteProjectMemberRequest.cc
|
||||
src/model/DeleteProjectMemberResult.cc
|
||||
src/model/DeleteQualityEntityRequest.cc
|
||||
src/model/DeleteQualityEntityResult.cc
|
||||
src/model/DeleteQualityFollowerRequest.cc
|
||||
@@ -404,6 +424,12 @@ set(dataworks-public_src
|
||||
src/model/ListNodeIOResult.cc
|
||||
src/model/ListNodesRequest.cc
|
||||
src/model/ListNodesResult.cc
|
||||
src/model/ListProjectMembersRequest.cc
|
||||
src/model/ListProjectMembersResult.cc
|
||||
src/model/ListProjectRolesRequest.cc
|
||||
src/model/ListProjectRolesResult.cc
|
||||
src/model/ListProjectsRequest.cc
|
||||
src/model/ListProjectsResult.cc
|
||||
src/model/ListQualityRulesRequest.cc
|
||||
src/model/ListQualityRulesResult.cc
|
||||
src/model/ListRemindsRequest.cc
|
||||
@@ -414,6 +440,8 @@ set(dataworks-public_src
|
||||
src/model/ListTopicsResult.cc
|
||||
src/model/PublishDataServiceApiRequest.cc
|
||||
src/model/PublishDataServiceApiResult.cc
|
||||
src/model/RemoveProjectMemberFromRoleRequest.cc
|
||||
src/model/RemoveProjectMemberFromRoleResult.cc
|
||||
src/model/RestartInstanceRequest.cc
|
||||
src/model/RestartInstanceResult.cc
|
||||
src/model/ResumeInstanceRequest.cc
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "Dataworks_publicExport.h"
|
||||
#include "model/AbolishDataServiceApiRequest.h"
|
||||
#include "model/AbolishDataServiceApiResult.h"
|
||||
#include "model/AddProjectMemberToRoleRequest.h"
|
||||
#include "model/AddProjectMemberToRoleResult.h"
|
||||
#include "model/AddToMetaCategoryRequest.h"
|
||||
#include "model/AddToMetaCategoryResult.h"
|
||||
#include "model/CheckMetaPartitionRequest.h"
|
||||
@@ -44,6 +46,8 @@
|
||||
#include "model/CreateFolderResult.h"
|
||||
#include "model/CreateMetaCategoryRequest.h"
|
||||
#include "model/CreateMetaCategoryResult.h"
|
||||
#include "model/CreateProjectMemberRequest.h"
|
||||
#include "model/CreateProjectMemberResult.h"
|
||||
#include "model/CreateQualityEntityRequest.h"
|
||||
#include "model/CreateQualityEntityResult.h"
|
||||
#include "model/CreateQualityFollowerRequest.h"
|
||||
@@ -70,6 +74,8 @@
|
||||
#include "model/DeleteFromMetaCategoryResult.h"
|
||||
#include "model/DeleteMetaCategoryRequest.h"
|
||||
#include "model/DeleteMetaCategoryResult.h"
|
||||
#include "model/DeleteProjectMemberRequest.h"
|
||||
#include "model/DeleteProjectMemberResult.h"
|
||||
#include "model/DeleteQualityEntityRequest.h"
|
||||
#include "model/DeleteQualityEntityResult.h"
|
||||
#include "model/DeleteQualityFollowerRequest.h"
|
||||
@@ -190,6 +196,12 @@
|
||||
#include "model/ListNodeIOResult.h"
|
||||
#include "model/ListNodesRequest.h"
|
||||
#include "model/ListNodesResult.h"
|
||||
#include "model/ListProjectMembersRequest.h"
|
||||
#include "model/ListProjectMembersResult.h"
|
||||
#include "model/ListProjectRolesRequest.h"
|
||||
#include "model/ListProjectRolesResult.h"
|
||||
#include "model/ListProjectsRequest.h"
|
||||
#include "model/ListProjectsResult.h"
|
||||
#include "model/ListQualityRulesRequest.h"
|
||||
#include "model/ListQualityRulesResult.h"
|
||||
#include "model/ListRemindsRequest.h"
|
||||
@@ -200,6 +212,8 @@
|
||||
#include "model/ListTopicsResult.h"
|
||||
#include "model/PublishDataServiceApiRequest.h"
|
||||
#include "model/PublishDataServiceApiResult.h"
|
||||
#include "model/RemoveProjectMemberFromRoleRequest.h"
|
||||
#include "model/RemoveProjectMemberFromRoleResult.h"
|
||||
#include "model/RestartInstanceRequest.h"
|
||||
#include "model/RestartInstanceResult.h"
|
||||
#include "model/ResumeInstanceRequest.h"
|
||||
@@ -246,6 +260,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AbolishDataServiceApiResult> AbolishDataServiceApiOutcome;
|
||||
typedef std::future<AbolishDataServiceApiOutcome> AbolishDataServiceApiOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::AbolishDataServiceApiRequest&, const AbolishDataServiceApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AbolishDataServiceApiAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddProjectMemberToRoleResult> AddProjectMemberToRoleOutcome;
|
||||
typedef std::future<AddProjectMemberToRoleOutcome> AddProjectMemberToRoleOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::AddProjectMemberToRoleRequest&, const AddProjectMemberToRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddProjectMemberToRoleAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddToMetaCategoryResult> AddToMetaCategoryOutcome;
|
||||
typedef std::future<AddToMetaCategoryOutcome> AddToMetaCategoryOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::AddToMetaCategoryRequest&, const AddToMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddToMetaCategoryAsyncHandler;
|
||||
@@ -276,6 +293,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateMetaCategoryResult> CreateMetaCategoryOutcome;
|
||||
typedef std::future<CreateMetaCategoryOutcome> CreateMetaCategoryOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateMetaCategoryRequest&, const CreateMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMetaCategoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateProjectMemberResult> CreateProjectMemberOutcome;
|
||||
typedef std::future<CreateProjectMemberOutcome> CreateProjectMemberOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateProjectMemberRequest&, const CreateProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateQualityEntityResult> CreateQualityEntityOutcome;
|
||||
typedef std::future<CreateQualityEntityOutcome> CreateQualityEntityOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateQualityEntityRequest&, const CreateQualityEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQualityEntityAsyncHandler;
|
||||
@@ -315,6 +335,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteMetaCategoryResult> DeleteMetaCategoryOutcome;
|
||||
typedef std::future<DeleteMetaCategoryOutcome> DeleteMetaCategoryOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteMetaCategoryRequest&, const DeleteMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMetaCategoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteProjectMemberResult> DeleteProjectMemberOutcome;
|
||||
typedef std::future<DeleteProjectMemberOutcome> DeleteProjectMemberOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteProjectMemberRequest&, const DeleteProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProjectMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteQualityEntityResult> DeleteQualityEntityOutcome;
|
||||
typedef std::future<DeleteQualityEntityOutcome> DeleteQualityEntityOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteQualityEntityRequest&, const DeleteQualityEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQualityEntityAsyncHandler;
|
||||
@@ -495,6 +518,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListNodesResult> ListNodesOutcome;
|
||||
typedef std::future<ListNodesOutcome> ListNodesOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListNodesRequest&, const ListNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectMembersResult> ListProjectMembersOutcome;
|
||||
typedef std::future<ListProjectMembersOutcome> ListProjectMembersOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListProjectMembersRequest&, const ListProjectMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectRolesResult> ListProjectRolesOutcome;
|
||||
typedef std::future<ListProjectRolesOutcome> ListProjectRolesOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListProjectRolesRequest&, const ListProjectRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectRolesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectsResult> ListProjectsOutcome;
|
||||
typedef std::future<ListProjectsOutcome> ListProjectsOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListProjectsRequest&, const ListProjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListQualityRulesResult> ListQualityRulesOutcome;
|
||||
typedef std::future<ListQualityRulesOutcome> ListQualityRulesOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListQualityRulesRequest&, const ListQualityRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQualityRulesAsyncHandler;
|
||||
@@ -510,6 +542,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PublishDataServiceApiResult> PublishDataServiceApiOutcome;
|
||||
typedef std::future<PublishDataServiceApiOutcome> PublishDataServiceApiOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::PublishDataServiceApiRequest&, const PublishDataServiceApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishDataServiceApiAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveProjectMemberFromRoleResult> RemoveProjectMemberFromRoleOutcome;
|
||||
typedef std::future<RemoveProjectMemberFromRoleOutcome> RemoveProjectMemberFromRoleOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::RemoveProjectMemberFromRoleRequest&, const RemoveProjectMemberFromRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveProjectMemberFromRoleAsyncHandler;
|
||||
typedef Outcome<Error, Model::RestartInstanceResult> RestartInstanceOutcome;
|
||||
typedef std::future<RestartInstanceOutcome> RestartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::RestartInstanceRequest&, const RestartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartInstanceAsyncHandler;
|
||||
@@ -569,6 +604,9 @@ namespace AlibabaCloud
|
||||
AbolishDataServiceApiOutcome abolishDataServiceApi(const Model::AbolishDataServiceApiRequest &request)const;
|
||||
void abolishDataServiceApiAsync(const Model::AbolishDataServiceApiRequest& request, const AbolishDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AbolishDataServiceApiOutcomeCallable abolishDataServiceApiCallable(const Model::AbolishDataServiceApiRequest& request) const;
|
||||
AddProjectMemberToRoleOutcome addProjectMemberToRole(const Model::AddProjectMemberToRoleRequest &request)const;
|
||||
void addProjectMemberToRoleAsync(const Model::AddProjectMemberToRoleRequest& request, const AddProjectMemberToRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddProjectMemberToRoleOutcomeCallable addProjectMemberToRoleCallable(const Model::AddProjectMemberToRoleRequest& request) const;
|
||||
AddToMetaCategoryOutcome addToMetaCategory(const Model::AddToMetaCategoryRequest &request)const;
|
||||
void addToMetaCategoryAsync(const Model::AddToMetaCategoryRequest& request, const AddToMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddToMetaCategoryOutcomeCallable addToMetaCategoryCallable(const Model::AddToMetaCategoryRequest& request) const;
|
||||
@@ -599,6 +637,9 @@ namespace AlibabaCloud
|
||||
CreateMetaCategoryOutcome createMetaCategory(const Model::CreateMetaCategoryRequest &request)const;
|
||||
void createMetaCategoryAsync(const Model::CreateMetaCategoryRequest& request, const CreateMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMetaCategoryOutcomeCallable createMetaCategoryCallable(const Model::CreateMetaCategoryRequest& request) const;
|
||||
CreateProjectMemberOutcome createProjectMember(const Model::CreateProjectMemberRequest &request)const;
|
||||
void createProjectMemberAsync(const Model::CreateProjectMemberRequest& request, const CreateProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProjectMemberOutcomeCallable createProjectMemberCallable(const Model::CreateProjectMemberRequest& request) const;
|
||||
CreateQualityEntityOutcome createQualityEntity(const Model::CreateQualityEntityRequest &request)const;
|
||||
void createQualityEntityAsync(const Model::CreateQualityEntityRequest& request, const CreateQualityEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateQualityEntityOutcomeCallable createQualityEntityCallable(const Model::CreateQualityEntityRequest& request) const;
|
||||
@@ -638,6 +679,9 @@ namespace AlibabaCloud
|
||||
DeleteMetaCategoryOutcome deleteMetaCategory(const Model::DeleteMetaCategoryRequest &request)const;
|
||||
void deleteMetaCategoryAsync(const Model::DeleteMetaCategoryRequest& request, const DeleteMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMetaCategoryOutcomeCallable deleteMetaCategoryCallable(const Model::DeleteMetaCategoryRequest& request) const;
|
||||
DeleteProjectMemberOutcome deleteProjectMember(const Model::DeleteProjectMemberRequest &request)const;
|
||||
void deleteProjectMemberAsync(const Model::DeleteProjectMemberRequest& request, const DeleteProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteProjectMemberOutcomeCallable deleteProjectMemberCallable(const Model::DeleteProjectMemberRequest& request) const;
|
||||
DeleteQualityEntityOutcome deleteQualityEntity(const Model::DeleteQualityEntityRequest &request)const;
|
||||
void deleteQualityEntityAsync(const Model::DeleteQualityEntityRequest& request, const DeleteQualityEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteQualityEntityOutcomeCallable deleteQualityEntityCallable(const Model::DeleteQualityEntityRequest& request) const;
|
||||
@@ -818,6 +862,15 @@ namespace AlibabaCloud
|
||||
ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const;
|
||||
void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const;
|
||||
ListProjectMembersOutcome listProjectMembers(const Model::ListProjectMembersRequest &request)const;
|
||||
void listProjectMembersAsync(const Model::ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectMembersOutcomeCallable listProjectMembersCallable(const Model::ListProjectMembersRequest& request) const;
|
||||
ListProjectRolesOutcome listProjectRoles(const Model::ListProjectRolesRequest &request)const;
|
||||
void listProjectRolesAsync(const Model::ListProjectRolesRequest& request, const ListProjectRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectRolesOutcomeCallable listProjectRolesCallable(const Model::ListProjectRolesRequest& request) const;
|
||||
ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const;
|
||||
void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const;
|
||||
ListQualityRulesOutcome listQualityRules(const Model::ListQualityRulesRequest &request)const;
|
||||
void listQualityRulesAsync(const Model::ListQualityRulesRequest& request, const ListQualityRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQualityRulesOutcomeCallable listQualityRulesCallable(const Model::ListQualityRulesRequest& request) const;
|
||||
@@ -833,6 +886,9 @@ namespace AlibabaCloud
|
||||
PublishDataServiceApiOutcome publishDataServiceApi(const Model::PublishDataServiceApiRequest &request)const;
|
||||
void publishDataServiceApiAsync(const Model::PublishDataServiceApiRequest& request, const PublishDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishDataServiceApiOutcomeCallable publishDataServiceApiCallable(const Model::PublishDataServiceApiRequest& request) const;
|
||||
RemoveProjectMemberFromRoleOutcome removeProjectMemberFromRole(const Model::RemoveProjectMemberFromRoleRequest &request)const;
|
||||
void removeProjectMemberFromRoleAsync(const Model::RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveProjectMemberFromRoleOutcomeCallable removeProjectMemberFromRoleCallable(const Model::RemoveProjectMemberFromRoleRequest& request) const;
|
||||
RestartInstanceOutcome restartInstance(const Model::RestartInstanceRequest &request)const;
|
||||
void restartInstanceAsync(const Model::RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestartInstanceOutcomeCallable restartInstanceCallable(const Model::RestartInstanceRequest& 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_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT AddProjectMemberToRoleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddProjectMemberToRoleRequest();
|
||||
~AddProjectMemberToRoleRequest();
|
||||
|
||||
std::string getRoleCode()const;
|
||||
void setRoleCode(const std::string& roleCode);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string roleCode_;
|
||||
std::string clientToken_;
|
||||
long projectId_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_ADDPROJECTMEMBERTOROLERESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLERESULT_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 AddProjectMemberToRoleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddProjectMemberToRoleResult();
|
||||
explicit AddProjectMemberToRoleResult(const std::string &payload);
|
||||
~AddProjectMemberToRoleResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLERESULT_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_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateProjectMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateProjectMemberRequest();
|
||||
~CreateProjectMemberRequest();
|
||||
|
||||
std::string getRoleCode()const;
|
||||
void setRoleCode(const std::string& roleCode);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string roleCode_;
|
||||
std::string clientToken_;
|
||||
long projectId_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_CREATEPROJECTMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERRESULT_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 CreateProjectMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateProjectMemberResult();
|
||||
explicit CreateProjectMemberResult(const std::string &payload);
|
||||
~CreateProjectMemberResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERRESULT_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_DELETEPROJECTMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteProjectMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteProjectMemberRequest();
|
||||
~DeleteProjectMemberRequest();
|
||||
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
long projectId_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_DELETEPROJECTMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERRESULT_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 DeleteProjectMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteProjectMemberResult();
|
||||
explicit DeleteProjectMemberResult(const std::string &payload);
|
||||
~DeleteProjectMemberResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectMembersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProjectMembersRequest();
|
||||
~ListProjectMembersRequest();
|
||||
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
long projectId_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_LISTPROJECTMEMBERSRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSRESULT_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 ListProjectMembersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ProjectMember
|
||||
{
|
||||
struct Role
|
||||
{
|
||||
std::string projectRoleName;
|
||||
std::string projectRoleType;
|
||||
std::string projectRoleCode;
|
||||
int projectRoleId;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<ProjectMember::Role> projectRoleList;
|
||||
std::string projectMemberType;
|
||||
std::string projectMemberId;
|
||||
std::string nick;
|
||||
std::string projectMemberName;
|
||||
};
|
||||
int totalCount;
|
||||
std::vector<ProjectMember> projectMemberList;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
ListProjectMembersResult();
|
||||
explicit ListProjectMembersResult(const std::string &payload);
|
||||
~ListProjectMembersResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSRESULT_H_
|
||||
@@ -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_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectRolesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProjectRolesRequest();
|
||||
~ListProjectRolesRequest();
|
||||
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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_LISTPROJECTROLESRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESRESULT_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 ListProjectRolesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Role
|
||||
{
|
||||
std::string projectRoleName;
|
||||
std::string projectRoleType;
|
||||
std::string projectRoleCode;
|
||||
int projectRoleId;
|
||||
};
|
||||
|
||||
|
||||
ListProjectRolesResult();
|
||||
explicit ListProjectRolesResult(const std::string &payload);
|
||||
~ListProjectRolesResult();
|
||||
std::vector<Role> getProjectRoleList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Role> projectRoleList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESRESULT_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_LISTPROJECTSREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProjectsRequest();
|
||||
~ListProjectsRequest();
|
||||
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSREQUEST_H_
|
||||
@@ -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_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_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 ListProjectsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageResult
|
||||
{
|
||||
struct Project
|
||||
{
|
||||
std::string projectIdentifier;
|
||||
std::string projectOwnerBaseId;
|
||||
int projectStatus;
|
||||
std::string projectStatusCode;
|
||||
std::string projectName;
|
||||
long projectId;
|
||||
std::string projectDescription;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<Project> projectList;
|
||||
};
|
||||
|
||||
|
||||
ListProjectsResult();
|
||||
explicit ListProjectsResult(const std::string &payload);
|
||||
~ListProjectsResult();
|
||||
PageResult getPageResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageResult pageResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RemoveProjectMemberFromRoleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RemoveProjectMemberFromRoleRequest();
|
||||
~RemoveProjectMemberFromRoleRequest();
|
||||
|
||||
std::string getRoleCode()const;
|
||||
void setRoleCode(const std::string& roleCode);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string roleCode_;
|
||||
long projectId_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_REMOVEPROJECTMEMBERFROMROLERESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLERESULT_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 RemoveProjectMemberFromRoleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RemoveProjectMemberFromRoleResult();
|
||||
explicit RemoveProjectMemberFromRoleResult(const std::string &payload);
|
||||
~RemoveProjectMemberFromRoleResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLERESULT_H_
|
||||
@@ -87,6 +87,42 @@ Dataworks_publicClient::AbolishDataServiceApiOutcomeCallable Dataworks_publicCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddProjectMemberToRoleOutcome Dataworks_publicClient::addProjectMemberToRole(const AddProjectMemberToRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddProjectMemberToRoleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddProjectMemberToRoleOutcome(AddProjectMemberToRoleResult(outcome.result()));
|
||||
else
|
||||
return AddProjectMemberToRoleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::addProjectMemberToRoleAsync(const AddProjectMemberToRoleRequest& request, const AddProjectMemberToRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addProjectMemberToRole(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddProjectMemberToRoleOutcomeCallable Dataworks_publicClient::addProjectMemberToRoleCallable(const AddProjectMemberToRoleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddProjectMemberToRoleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addProjectMemberToRole(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddToMetaCategoryOutcome Dataworks_publicClient::addToMetaCategory(const AddToMetaCategoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +483,42 @@ Dataworks_publicClient::CreateMetaCategoryOutcomeCallable Dataworks_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateProjectMemberOutcome Dataworks_publicClient::createProjectMember(const CreateProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProjectMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProjectMemberOutcome(CreateProjectMemberResult(outcome.result()));
|
||||
else
|
||||
return CreateProjectMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::createProjectMemberAsync(const CreateProjectMemberRequest& request, const CreateProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProjectMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateProjectMemberOutcomeCallable Dataworks_publicClient::createProjectMemberCallable(const CreateProjectMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProjectMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProjectMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateQualityEntityOutcome Dataworks_publicClient::createQualityEntity(const CreateQualityEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +987,42 @@ Dataworks_publicClient::DeleteMetaCategoryOutcomeCallable Dataworks_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteProjectMemberOutcome Dataworks_publicClient::deleteProjectMember(const DeleteProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteProjectMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteProjectMemberOutcome(DeleteProjectMemberResult(outcome.result()));
|
||||
else
|
||||
return DeleteProjectMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::deleteProjectMemberAsync(const DeleteProjectMemberRequest& request, const DeleteProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteProjectMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteProjectMemberOutcomeCallable Dataworks_publicClient::deleteProjectMemberCallable(const DeleteProjectMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteProjectMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteProjectMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteQualityEntityOutcome Dataworks_publicClient::deleteQualityEntity(const DeleteQualityEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3075,6 +3183,114 @@ Dataworks_publicClient::ListNodesOutcomeCallable Dataworks_publicClient::listNod
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectMembersOutcome Dataworks_publicClient::listProjectMembers(const ListProjectMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProjectMembersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProjectMembersOutcome(ListProjectMembersResult(outcome.result()));
|
||||
else
|
||||
return ListProjectMembersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listProjectMembersAsync(const ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProjectMembers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectMembersOutcomeCallable Dataworks_publicClient::listProjectMembersCallable(const ListProjectMembersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProjectMembersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProjectMembers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectRolesOutcome Dataworks_publicClient::listProjectRoles(const ListProjectRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProjectRolesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProjectRolesOutcome(ListProjectRolesResult(outcome.result()));
|
||||
else
|
||||
return ListProjectRolesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listProjectRolesAsync(const ListProjectRolesRequest& request, const ListProjectRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProjectRoles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectRolesOutcomeCallable Dataworks_publicClient::listProjectRolesCallable(const ListProjectRolesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProjectRolesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProjectRoles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectsOutcome Dataworks_publicClient::listProjects(const ListProjectsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProjectsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProjectsOutcome(ListProjectsResult(outcome.result()));
|
||||
else
|
||||
return ListProjectsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProjects(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListProjectsOutcomeCallable Dataworks_publicClient::listProjectsCallable(const ListProjectsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProjectsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProjects(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListQualityRulesOutcome Dataworks_publicClient::listQualityRules(const ListQualityRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3255,6 +3471,42 @@ Dataworks_publicClient::PublishDataServiceApiOutcomeCallable Dataworks_publicCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RemoveProjectMemberFromRoleOutcome Dataworks_publicClient::removeProjectMemberFromRole(const RemoveProjectMemberFromRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveProjectMemberFromRoleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveProjectMemberFromRoleOutcome(RemoveProjectMemberFromRoleResult(outcome.result()));
|
||||
else
|
||||
return RemoveProjectMemberFromRoleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::removeProjectMemberFromRoleAsync(const RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeProjectMemberFromRole(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RemoveProjectMemberFromRoleOutcomeCallable Dataworks_publicClient::removeProjectMemberFromRoleCallable(const RemoveProjectMemberFromRoleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveProjectMemberFromRoleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeProjectMemberFromRole(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RestartInstanceOutcome Dataworks_publicClient::restartInstance(const RestartInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
73
dataworks-public/src/model/AddProjectMemberToRoleRequest.cc
Normal file
73
dataworks-public/src/model/AddProjectMemberToRoleRequest.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/dataworks-public/model/AddProjectMemberToRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::AddProjectMemberToRoleRequest;
|
||||
|
||||
AddProjectMemberToRoleRequest::AddProjectMemberToRoleRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "AddProjectMemberToRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddProjectMemberToRoleRequest::~AddProjectMemberToRoleRequest()
|
||||
{}
|
||||
|
||||
std::string AddProjectMemberToRoleRequest::getRoleCode()const
|
||||
{
|
||||
return roleCode_;
|
||||
}
|
||||
|
||||
void AddProjectMemberToRoleRequest::setRoleCode(const std::string& roleCode)
|
||||
{
|
||||
roleCode_ = roleCode;
|
||||
setParameter("RoleCode", roleCode);
|
||||
}
|
||||
|
||||
std::string AddProjectMemberToRoleRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddProjectMemberToRoleRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AddProjectMemberToRoleRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void AddProjectMemberToRoleRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string AddProjectMemberToRoleRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddProjectMemberToRoleRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
44
dataworks-public/src/model/AddProjectMemberToRoleResult.cc
Normal file
44
dataworks-public/src/model/AddProjectMemberToRoleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/AddProjectMemberToRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
AddProjectMemberToRoleResult::AddProjectMemberToRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddProjectMemberToRoleResult::AddProjectMemberToRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddProjectMemberToRoleResult::~AddProjectMemberToRoleResult()
|
||||
{}
|
||||
|
||||
void AddProjectMemberToRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
dataworks-public/src/model/CreateProjectMemberRequest.cc
Normal file
73
dataworks-public/src/model/CreateProjectMemberRequest.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/dataworks-public/model/CreateProjectMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateProjectMemberRequest;
|
||||
|
||||
CreateProjectMemberRequest::CreateProjectMemberRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateProjectMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProjectMemberRequest::~CreateProjectMemberRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectMemberRequest::getRoleCode()const
|
||||
{
|
||||
return roleCode_;
|
||||
}
|
||||
|
||||
void CreateProjectMemberRequest::setRoleCode(const std::string& roleCode)
|
||||
{
|
||||
roleCode_ = roleCode;
|
||||
setParameter("RoleCode", roleCode);
|
||||
}
|
||||
|
||||
std::string CreateProjectMemberRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateProjectMemberRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateProjectMemberRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateProjectMemberRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string CreateProjectMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateProjectMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
44
dataworks-public/src/model/CreateProjectMemberResult.cc
Normal file
44
dataworks-public/src/model/CreateProjectMemberResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/CreateProjectMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateProjectMemberResult::CreateProjectMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectMemberResult::CreateProjectMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectMemberResult::~CreateProjectMemberResult()
|
||||
{}
|
||||
|
||||
void CreateProjectMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/DeleteProjectMemberRequest.cc
Normal file
51
dataworks-public/src/model/DeleteProjectMemberRequest.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/DeleteProjectMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteProjectMemberRequest;
|
||||
|
||||
DeleteProjectMemberRequest::DeleteProjectMemberRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteProjectMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProjectMemberRequest::~DeleteProjectMemberRequest()
|
||||
{}
|
||||
|
||||
long DeleteProjectMemberRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteProjectMemberRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeleteProjectMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
44
dataworks-public/src/model/DeleteProjectMemberResult.cc
Normal file
44
dataworks-public/src/model/DeleteProjectMemberResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteProjectMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteProjectMemberResult::DeleteProjectMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectMemberResult::DeleteProjectMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectMemberResult::~DeleteProjectMemberResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/ListProjectMembersRequest.cc
Normal file
62
dataworks-public/src/model/ListProjectMembersRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListProjectMembersRequest;
|
||||
|
||||
ListProjectMembersRequest::ListProjectMembersRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjectMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListProjectMembersRequest::~ListProjectMembersRequest()
|
||||
{}
|
||||
|
||||
int ListProjectMembersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListProjectMembersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListProjectMembersRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListProjectMembersRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
int ListProjectMembersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListProjectMembersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
86
dataworks-public/src/model/ListProjectMembersResult.cc
Normal file
86
dataworks-public/src/model/ListProjectMembersResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/ListProjectMembersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListProjectMembersResult::ListProjectMembersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectMembersResult::ListProjectMembersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectMembersResult::~ListProjectMembersResult()
|
||||
{}
|
||||
|
||||
void ListProjectMembersResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allProjectMemberListNode = dataNode["ProjectMemberList"]["ProjectMember"];
|
||||
for (auto dataNodeProjectMemberListProjectMember : allProjectMemberListNode)
|
||||
{
|
||||
Data::ProjectMember projectMemberObject;
|
||||
if(!dataNodeProjectMemberListProjectMember["Nick"].isNull())
|
||||
projectMemberObject.nick = dataNodeProjectMemberListProjectMember["Nick"].asString();
|
||||
if(!dataNodeProjectMemberListProjectMember["ProjectMemberId"].isNull())
|
||||
projectMemberObject.projectMemberId = dataNodeProjectMemberListProjectMember["ProjectMemberId"].asString();
|
||||
if(!dataNodeProjectMemberListProjectMember["ProjectMemberName"].isNull())
|
||||
projectMemberObject.projectMemberName = dataNodeProjectMemberListProjectMember["ProjectMemberName"].asString();
|
||||
if(!dataNodeProjectMemberListProjectMember["ProjectMemberType"].isNull())
|
||||
projectMemberObject.projectMemberType = dataNodeProjectMemberListProjectMember["ProjectMemberType"].asString();
|
||||
if(!dataNodeProjectMemberListProjectMember["Status"].isNull())
|
||||
projectMemberObject.status = dataNodeProjectMemberListProjectMember["Status"].asString();
|
||||
auto allProjectRoleListNode = allProjectMemberListNode["ProjectRoleList"]["Role"];
|
||||
for (auto allProjectMemberListNodeProjectRoleListRole : allProjectRoleListNode)
|
||||
{
|
||||
Data::ProjectMember::Role projectRoleListObject;
|
||||
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].isNull())
|
||||
projectRoleListObject.projectRoleCode = allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].asString();
|
||||
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleId"].isNull())
|
||||
projectRoleListObject.projectRoleId = std::stoi(allProjectMemberListNodeProjectRoleListRole["ProjectRoleId"].asString());
|
||||
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleName"].isNull())
|
||||
projectRoleListObject.projectRoleName = allProjectMemberListNodeProjectRoleListRole["ProjectRoleName"].asString();
|
||||
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].isNull())
|
||||
projectRoleListObject.projectRoleType = allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].asString();
|
||||
projectMemberObject.projectRoleList.push_back(projectRoleListObject);
|
||||
}
|
||||
data_.projectMemberList.push_back(projectMemberObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListProjectMembersResult::Data ListProjectMembersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
dataworks-public/src/model/ListProjectRolesRequest.cc
Normal file
40
dataworks-public/src/model/ListProjectRolesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ListProjectRolesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListProjectRolesRequest;
|
||||
|
||||
ListProjectRolesRequest::ListProjectRolesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjectRoles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListProjectRolesRequest::~ListProjectRolesRequest()
|
||||
{}
|
||||
|
||||
long ListProjectRolesRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListProjectRolesRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
63
dataworks-public/src/model/ListProjectRolesResult.cc
Normal file
63
dataworks-public/src/model/ListProjectRolesResult.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/dataworks-public/model/ListProjectRolesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListProjectRolesResult::ListProjectRolesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectRolesResult::ListProjectRolesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectRolesResult::~ListProjectRolesResult()
|
||||
{}
|
||||
|
||||
void ListProjectRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProjectRoleListNode = value["ProjectRoleList"]["Role"];
|
||||
for (auto valueProjectRoleListRole : allProjectRoleListNode)
|
||||
{
|
||||
Role projectRoleListObject;
|
||||
if(!valueProjectRoleListRole["ProjectRoleCode"].isNull())
|
||||
projectRoleListObject.projectRoleCode = valueProjectRoleListRole["ProjectRoleCode"].asString();
|
||||
if(!valueProjectRoleListRole["ProjectRoleId"].isNull())
|
||||
projectRoleListObject.projectRoleId = std::stoi(valueProjectRoleListRole["ProjectRoleId"].asString());
|
||||
if(!valueProjectRoleListRole["ProjectRoleName"].isNull())
|
||||
projectRoleListObject.projectRoleName = valueProjectRoleListRole["ProjectRoleName"].asString();
|
||||
if(!valueProjectRoleListRole["ProjectRoleType"].isNull())
|
||||
projectRoleListObject.projectRoleType = valueProjectRoleListRole["ProjectRoleType"].asString();
|
||||
projectRoleList_.push_back(projectRoleListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListProjectRolesResult::Role> ListProjectRolesResult::getProjectRoleList()const
|
||||
{
|
||||
return projectRoleList_;
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/ListProjectsRequest.cc
Normal file
51
dataworks-public/src/model/ListProjectsRequest.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/ListProjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListProjectsRequest;
|
||||
|
||||
ListProjectsRequest::ListProjectsRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjects")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListProjectsRequest::~ListProjectsRequest()
|
||||
{}
|
||||
|
||||
int ListProjectsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListProjectsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListProjectsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListProjectsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
76
dataworks-public/src/model/ListProjectsResult.cc
Normal file
76
dataworks-public/src/model/ListProjectsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/ListProjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListProjectsResult::ListProjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectsResult::ListProjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectsResult::~ListProjectsResult()
|
||||
{}
|
||||
|
||||
void ListProjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageResultNode = value["PageResult"];
|
||||
if(!pageResultNode["PageNumber"].isNull())
|
||||
pageResult_.pageNumber = std::stoi(pageResultNode["PageNumber"].asString());
|
||||
if(!pageResultNode["PageSize"].isNull())
|
||||
pageResult_.pageSize = std::stoi(pageResultNode["PageSize"].asString());
|
||||
if(!pageResultNode["TotalCount"].isNull())
|
||||
pageResult_.totalCount = std::stoi(pageResultNode["TotalCount"].asString());
|
||||
auto allProjectListNode = pageResultNode["ProjectList"]["Project"];
|
||||
for (auto pageResultNodeProjectListProject : allProjectListNode)
|
||||
{
|
||||
PageResult::Project projectObject;
|
||||
if(!pageResultNodeProjectListProject["ProjectName"].isNull())
|
||||
projectObject.projectName = pageResultNodeProjectListProject["ProjectName"].asString();
|
||||
if(!pageResultNodeProjectListProject["ProjectIdentifier"].isNull())
|
||||
projectObject.projectIdentifier = pageResultNodeProjectListProject["ProjectIdentifier"].asString();
|
||||
if(!pageResultNodeProjectListProject["ProjectDescription"].isNull())
|
||||
projectObject.projectDescription = pageResultNodeProjectListProject["ProjectDescription"].asString();
|
||||
if(!pageResultNodeProjectListProject["ProjectStatus"].isNull())
|
||||
projectObject.projectStatus = std::stoi(pageResultNodeProjectListProject["ProjectStatus"].asString());
|
||||
if(!pageResultNodeProjectListProject["ProjectId"].isNull())
|
||||
projectObject.projectId = std::stol(pageResultNodeProjectListProject["ProjectId"].asString());
|
||||
if(!pageResultNodeProjectListProject["ProjectOwnerBaseId"].isNull())
|
||||
projectObject.projectOwnerBaseId = pageResultNodeProjectListProject["ProjectOwnerBaseId"].asString();
|
||||
if(!pageResultNodeProjectListProject["ProjectStatusCode"].isNull())
|
||||
projectObject.projectStatusCode = pageResultNodeProjectListProject["ProjectStatusCode"].asString();
|
||||
pageResult_.projectList.push_back(projectObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListProjectsResult::PageResult ListProjectsResult::getPageResult()const
|
||||
{
|
||||
return pageResult_;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RemoveProjectMemberFromRoleRequest;
|
||||
|
||||
RemoveProjectMemberFromRoleRequest::RemoveProjectMemberFromRoleRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RemoveProjectMemberFromRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveProjectMemberFromRoleRequest::~RemoveProjectMemberFromRoleRequest()
|
||||
{}
|
||||
|
||||
std::string RemoveProjectMemberFromRoleRequest::getRoleCode()const
|
||||
{
|
||||
return roleCode_;
|
||||
}
|
||||
|
||||
void RemoveProjectMemberFromRoleRequest::setRoleCode(const std::string& roleCode)
|
||||
{
|
||||
roleCode_ = roleCode;
|
||||
setParameter("RoleCode", roleCode);
|
||||
}
|
||||
|
||||
long RemoveProjectMemberFromRoleRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void RemoveProjectMemberFromRoleRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string RemoveProjectMemberFromRoleRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void RemoveProjectMemberFromRoleRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/RemoveProjectMemberFromRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RemoveProjectMemberFromRoleResult::RemoveProjectMemberFromRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveProjectMemberFromRoleResult::RemoveProjectMemberFromRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveProjectMemberFromRoleResult::~RemoveProjectMemberFromRoleResult()
|
||||
{}
|
||||
|
||||
void RemoveProjectMemberFromRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
138
devops-rdc/CMakeLists.txt
Normal file
138
devops-rdc/CMakeLists.txt
Normal file
@@ -0,0 +1,138 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(devops-rdc_public_header
|
||||
include/alibabacloud/devops-rdc/Devops_rdcClient.h
|
||||
include/alibabacloud/devops-rdc/Devops_rdcExport.h )
|
||||
|
||||
set(devops-rdc_public_header_model
|
||||
include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h
|
||||
include/alibabacloud/devops-rdc/model/CancelPipelineResult.h
|
||||
include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h
|
||||
include/alibabacloud/devops-rdc/model/CreateCredentialResult.h
|
||||
include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h
|
||||
include/alibabacloud/devops-rdc/model/CreatePipelineResult.h
|
||||
include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h
|
||||
include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h
|
||||
include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h
|
||||
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListCredentialsResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListPipelinesResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h )
|
||||
|
||||
set(devops-rdc_src
|
||||
src/Devops-rdcClient.cc
|
||||
src/model/CancelPipelineRequest.cc
|
||||
src/model/CancelPipelineResult.cc
|
||||
src/model/CreateCredentialRequest.cc
|
||||
src/model/CreateCredentialResult.cc
|
||||
src/model/CreatePipelineRequest.cc
|
||||
src/model/CreatePipelineResult.cc
|
||||
src/model/CreateServiceConnectionRequest.cc
|
||||
src/model/CreateServiceConnectionResult.cc
|
||||
src/model/ExecutePipelineRequest.cc
|
||||
src/model/ExecutePipelineResult.cc
|
||||
src/model/GetPipelineInstanceBuildNumberStatusRequest.cc
|
||||
src/model/GetPipelineInstanceBuildNumberStatusResult.cc
|
||||
src/model/GetPipelineInstanceGroupStatusRequest.cc
|
||||
src/model/GetPipelineInstanceGroupStatusResult.cc
|
||||
src/model/GetPipelineInstanceInfoRequest.cc
|
||||
src/model/GetPipelineInstanceInfoResult.cc
|
||||
src/model/GetPipelineInstanceStatusRequest.cc
|
||||
src/model/GetPipelineInstanceStatusResult.cc
|
||||
src/model/GetPipelineLogRequest.cc
|
||||
src/model/GetPipelineLogResult.cc
|
||||
src/model/GetPipleineLatestInstanceStatusRequest.cc
|
||||
src/model/GetPipleineLatestInstanceStatusResult.cc
|
||||
src/model/ListCredentialsRequest.cc
|
||||
src/model/ListCredentialsResult.cc
|
||||
src/model/ListPipelinesRequest.cc
|
||||
src/model/ListPipelinesResult.cc
|
||||
src/model/ListServiceConnectionsRequest.cc
|
||||
src/model/ListServiceConnectionsResult.cc )
|
||||
|
||||
add_library(devops-rdc ${LIB_TYPE}
|
||||
${devops-rdc_public_header}
|
||||
${devops-rdc_public_header_model}
|
||||
${devops-rdc_src})
|
||||
|
||||
set_target_properties(devops-rdc
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}devops-rdc
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(devops-rdc
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DEVOPS_RDC_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(devops-rdc
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(devops-rdc
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(devops-rdc
|
||||
jsoncpp)
|
||||
target_include_directories(devops-rdc
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(devops-rdc
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(devops-rdc
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(devops-rdc
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(devops-rdc
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${devops-rdc_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc)
|
||||
install(FILES ${devops-rdc_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc/model)
|
||||
install(TARGETS devops-rdc
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
158
devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h
Normal file
158
devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h
Normal file
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* 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_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Devops_rdcExport.h"
|
||||
#include "model/CancelPipelineRequest.h"
|
||||
#include "model/CancelPipelineResult.h"
|
||||
#include "model/CreateCredentialRequest.h"
|
||||
#include "model/CreateCredentialResult.h"
|
||||
#include "model/CreatePipelineRequest.h"
|
||||
#include "model/CreatePipelineResult.h"
|
||||
#include "model/CreateServiceConnectionRequest.h"
|
||||
#include "model/CreateServiceConnectionResult.h"
|
||||
#include "model/ExecutePipelineRequest.h"
|
||||
#include "model/ExecutePipelineResult.h"
|
||||
#include "model/GetPipelineInstanceBuildNumberStatusRequest.h"
|
||||
#include "model/GetPipelineInstanceBuildNumberStatusResult.h"
|
||||
#include "model/GetPipelineInstanceGroupStatusRequest.h"
|
||||
#include "model/GetPipelineInstanceGroupStatusResult.h"
|
||||
#include "model/GetPipelineInstanceInfoRequest.h"
|
||||
#include "model/GetPipelineInstanceInfoResult.h"
|
||||
#include "model/GetPipelineInstanceStatusRequest.h"
|
||||
#include "model/GetPipelineInstanceStatusResult.h"
|
||||
#include "model/GetPipelineLogRequest.h"
|
||||
#include "model/GetPipelineLogResult.h"
|
||||
#include "model/GetPipleineLatestInstanceStatusRequest.h"
|
||||
#include "model/GetPipleineLatestInstanceStatusResult.h"
|
||||
#include "model/ListCredentialsRequest.h"
|
||||
#include "model/ListCredentialsResult.h"
|
||||
#include "model/ListPipelinesRequest.h"
|
||||
#include "model/ListPipelinesResult.h"
|
||||
#include "model/ListServiceConnectionsRequest.h"
|
||||
#include "model/ListServiceConnectionsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT Devops_rdcClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CancelPipelineResult> CancelPipelineOutcome;
|
||||
typedef std::future<CancelPipelineOutcome> CancelPipelineOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::CancelPipelineRequest&, const CancelPipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPipelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCredentialResult> CreateCredentialOutcome;
|
||||
typedef std::future<CreateCredentialOutcome> CreateCredentialOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::CreateCredentialRequest&, const CreateCredentialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCredentialAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePipelineResult> CreatePipelineOutcome;
|
||||
typedef std::future<CreatePipelineOutcome> CreatePipelineOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::CreatePipelineRequest&, const CreatePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePipelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateServiceConnectionResult> CreateServiceConnectionOutcome;
|
||||
typedef std::future<CreateServiceConnectionOutcome> CreateServiceConnectionOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::CreateServiceConnectionRequest&, const CreateServiceConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServiceConnectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecutePipelineResult> ExecutePipelineOutcome;
|
||||
typedef std::future<ExecutePipelineOutcome> ExecutePipelineOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ExecutePipelineRequest&, const ExecutePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecutePipelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstanceBuildNumberStatusResult> GetPipelineInstanceBuildNumberStatusOutcome;
|
||||
typedef std::future<GetPipelineInstanceBuildNumberStatusOutcome> GetPipelineInstanceBuildNumberStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceBuildNumberStatusRequest&, const GetPipelineInstanceBuildNumberStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceBuildNumberStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstanceGroupStatusResult> GetPipelineInstanceGroupStatusOutcome;
|
||||
typedef std::future<GetPipelineInstanceGroupStatusOutcome> GetPipelineInstanceGroupStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceGroupStatusRequest&, const GetPipelineInstanceGroupStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceGroupStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstanceInfoResult> GetPipelineInstanceInfoOutcome;
|
||||
typedef std::future<GetPipelineInstanceInfoOutcome> GetPipelineInstanceInfoOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceInfoRequest&, const GetPipelineInstanceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstanceStatusResult> GetPipelineInstanceStatusOutcome;
|
||||
typedef std::future<GetPipelineInstanceStatusOutcome> GetPipelineInstanceStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceStatusRequest&, const GetPipelineInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineLogResult> GetPipelineLogOutcome;
|
||||
typedef std::future<GetPipelineLogOutcome> GetPipelineLogOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineLogRequest&, const GetPipelineLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipleineLatestInstanceStatusResult> GetPipleineLatestInstanceStatusOutcome;
|
||||
typedef std::future<GetPipleineLatestInstanceStatusOutcome> GetPipleineLatestInstanceStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipleineLatestInstanceStatusRequest&, const GetPipleineLatestInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipleineLatestInstanceStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCredentialsResult> ListCredentialsOutcome;
|
||||
typedef std::future<ListCredentialsOutcome> ListCredentialsOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListCredentialsRequest&, const ListCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCredentialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPipelinesResult> ListPipelinesOutcome;
|
||||
typedef std::future<ListPipelinesOutcome> ListPipelinesOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListPipelinesRequest&, const ListPipelinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPipelinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServiceConnectionsResult> ListServiceConnectionsOutcome;
|
||||
typedef std::future<ListServiceConnectionsOutcome> ListServiceConnectionsOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListServiceConnectionsRequest&, const ListServiceConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceConnectionsAsyncHandler;
|
||||
|
||||
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Devops_rdcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Devops_rdcClient();
|
||||
CancelPipelineOutcome cancelPipeline(const Model::CancelPipelineRequest &request)const;
|
||||
void cancelPipelineAsync(const Model::CancelPipelineRequest& request, const CancelPipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelPipelineOutcomeCallable cancelPipelineCallable(const Model::CancelPipelineRequest& request) const;
|
||||
CreateCredentialOutcome createCredential(const Model::CreateCredentialRequest &request)const;
|
||||
void createCredentialAsync(const Model::CreateCredentialRequest& request, const CreateCredentialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCredentialOutcomeCallable createCredentialCallable(const Model::CreateCredentialRequest& request) const;
|
||||
CreatePipelineOutcome createPipeline(const Model::CreatePipelineRequest &request)const;
|
||||
void createPipelineAsync(const Model::CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePipelineOutcomeCallable createPipelineCallable(const Model::CreatePipelineRequest& request) const;
|
||||
CreateServiceConnectionOutcome createServiceConnection(const Model::CreateServiceConnectionRequest &request)const;
|
||||
void createServiceConnectionAsync(const Model::CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateServiceConnectionOutcomeCallable createServiceConnectionCallable(const Model::CreateServiceConnectionRequest& request) const;
|
||||
ExecutePipelineOutcome executePipeline(const Model::ExecutePipelineRequest &request)const;
|
||||
void executePipelineAsync(const Model::ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecutePipelineOutcomeCallable executePipelineCallable(const Model::ExecutePipelineRequest& request) const;
|
||||
GetPipelineInstanceBuildNumberStatusOutcome getPipelineInstanceBuildNumberStatus(const Model::GetPipelineInstanceBuildNumberStatusRequest &request)const;
|
||||
void getPipelineInstanceBuildNumberStatusAsync(const Model::GetPipelineInstanceBuildNumberStatusRequest& request, const GetPipelineInstanceBuildNumberStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstanceBuildNumberStatusOutcomeCallable getPipelineInstanceBuildNumberStatusCallable(const Model::GetPipelineInstanceBuildNumberStatusRequest& request) const;
|
||||
GetPipelineInstanceGroupStatusOutcome getPipelineInstanceGroupStatus(const Model::GetPipelineInstanceGroupStatusRequest &request)const;
|
||||
void getPipelineInstanceGroupStatusAsync(const Model::GetPipelineInstanceGroupStatusRequest& request, const GetPipelineInstanceGroupStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstanceGroupStatusOutcomeCallable getPipelineInstanceGroupStatusCallable(const Model::GetPipelineInstanceGroupStatusRequest& request) const;
|
||||
GetPipelineInstanceInfoOutcome getPipelineInstanceInfo(const Model::GetPipelineInstanceInfoRequest &request)const;
|
||||
void getPipelineInstanceInfoAsync(const Model::GetPipelineInstanceInfoRequest& request, const GetPipelineInstanceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstanceInfoOutcomeCallable getPipelineInstanceInfoCallable(const Model::GetPipelineInstanceInfoRequest& request) const;
|
||||
GetPipelineInstanceStatusOutcome getPipelineInstanceStatus(const Model::GetPipelineInstanceStatusRequest &request)const;
|
||||
void getPipelineInstanceStatusAsync(const Model::GetPipelineInstanceStatusRequest& request, const GetPipelineInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstanceStatusOutcomeCallable getPipelineInstanceStatusCallable(const Model::GetPipelineInstanceStatusRequest& request) const;
|
||||
GetPipelineLogOutcome getPipelineLog(const Model::GetPipelineLogRequest &request)const;
|
||||
void getPipelineLogAsync(const Model::GetPipelineLogRequest& request, const GetPipelineLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineLogOutcomeCallable getPipelineLogCallable(const Model::GetPipelineLogRequest& request) const;
|
||||
GetPipleineLatestInstanceStatusOutcome getPipleineLatestInstanceStatus(const Model::GetPipleineLatestInstanceStatusRequest &request)const;
|
||||
void getPipleineLatestInstanceStatusAsync(const Model::GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipleineLatestInstanceStatusOutcomeCallable getPipleineLatestInstanceStatusCallable(const Model::GetPipleineLatestInstanceStatusRequest& request) const;
|
||||
ListCredentialsOutcome listCredentials(const Model::ListCredentialsRequest &request)const;
|
||||
void listCredentialsAsync(const Model::ListCredentialsRequest& request, const ListCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCredentialsOutcomeCallable listCredentialsCallable(const Model::ListCredentialsRequest& request) const;
|
||||
ListPipelinesOutcome listPipelines(const Model::ListPipelinesRequest &request)const;
|
||||
void listPipelinesAsync(const Model::ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPipelinesOutcomeCallable listPipelinesCallable(const Model::ListPipelinesRequest& request) const;
|
||||
ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const;
|
||||
void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DEVOPS_RDC_LIBRARY)
|
||||
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_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_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT CancelPipelineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CancelPipelineRequest();
|
||||
~CancelPipelineRequest();
|
||||
|
||||
long getFlowInstanceId()const;
|
||||
void setFlowInstanceId(long flowInstanceId);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
|
||||
private:
|
||||
long flowInstanceId_;
|
||||
std::string userPk_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_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_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT CancelPipelineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CancelPipelineResult();
|
||||
explicit CancelPipelineResult(const std::string &payload);
|
||||
~CancelPipelineResult();
|
||||
bool getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateCredentialRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCredentialRequest();
|
||||
~CreateCredentialRequest();
|
||||
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string userPk_;
|
||||
std::string orgId_;
|
||||
std::string password_;
|
||||
std::string name_;
|
||||
std::string userName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user