Skip to content

Commit e4d3a2d

Browse files
committed
Generated 2020-05-18 for dataworks-public.
1 parent a5c2149 commit e4d3a2d

12 files changed

+283
-13
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1363
1+
1.36.1364

dataworks-public/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ set(dataworks-public_public_header_model
2929
include/alibabacloud/dataworks-public/model/AddToMetaCategoryResult.h
3030
include/alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderRequest.h
3131
include/alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderResult.h
32+
include/alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupRequest.h
33+
include/alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupResult.h
3234
include/alibabacloud/dataworks-public/model/CheckFileDeploymentRequest.h
3335
include/alibabacloud/dataworks-public/model/CheckFileDeploymentResult.h
3436
include/alibabacloud/dataworks-public/model/CheckMetaPartitionRequest.h
@@ -510,6 +512,8 @@ set(dataworks-public_src
510512
src/model/AddToMetaCategoryResult.cc
511513
src/model/ApprovePermissionApplyOrderRequest.cc
512514
src/model/ApprovePermissionApplyOrderResult.cc
515+
src/model/ChangeResourceManagerResourceGroupRequest.cc
516+
src/model/ChangeResourceManagerResourceGroupResult.cc
513517
src/model/CheckFileDeploymentRequest.cc
514518
src/model/CheckFileDeploymentResult.cc
515519
src/model/CheckMetaPartitionRequest.cc

dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "model/AddToMetaCategoryResult.h"
3131
#include "model/ApprovePermissionApplyOrderRequest.h"
3232
#include "model/ApprovePermissionApplyOrderResult.h"
33+
#include "model/ChangeResourceManagerResourceGroupRequest.h"
34+
#include "model/ChangeResourceManagerResourceGroupResult.h"
3335
#include "model/CheckFileDeploymentRequest.h"
3436
#include "model/CheckFileDeploymentResult.h"
3537
#include "model/CheckMetaPartitionRequest.h"
@@ -521,6 +523,9 @@ namespace AlibabaCloud
521523
typedef Outcome<Error, Model::ApprovePermissionApplyOrderResult> ApprovePermissionApplyOrderOutcome;
522524
typedef std::future<ApprovePermissionApplyOrderOutcome> ApprovePermissionApplyOrderOutcomeCallable;
523525
typedef std::function<void(const Dataworks_publicClient*, const Model::ApprovePermissionApplyOrderRequest&, const ApprovePermissionApplyOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApprovePermissionApplyOrderAsyncHandler;
526+
typedef Outcome<Error, Model::ChangeResourceManagerResourceGroupResult> ChangeResourceManagerResourceGroupOutcome;
527+
typedef std::future<ChangeResourceManagerResourceGroupOutcome> ChangeResourceManagerResourceGroupOutcomeCallable;
528+
typedef std::function<void(const Dataworks_publicClient*, const Model::ChangeResourceManagerResourceGroupRequest&, const ChangeResourceManagerResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceManagerResourceGroupAsyncHandler;
524529
typedef Outcome<Error, Model::CheckFileDeploymentResult> CheckFileDeploymentOutcome;
525530
typedef std::future<CheckFileDeploymentOutcome> CheckFileDeploymentOutcomeCallable;
526531
typedef std::function<void(const Dataworks_publicClient*, const Model::CheckFileDeploymentRequest&, const CheckFileDeploymentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckFileDeploymentAsyncHandler;
@@ -1243,6 +1248,9 @@ namespace AlibabaCloud
12431248
ApprovePermissionApplyOrderOutcome approvePermissionApplyOrder(const Model::ApprovePermissionApplyOrderRequest &request)const;
12441249
void approvePermissionApplyOrderAsync(const Model::ApprovePermissionApplyOrderRequest& request, const ApprovePermissionApplyOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
12451250
ApprovePermissionApplyOrderOutcomeCallable approvePermissionApplyOrderCallable(const Model::ApprovePermissionApplyOrderRequest& request) const;
1251+
ChangeResourceManagerResourceGroupOutcome changeResourceManagerResourceGroup(const Model::ChangeResourceManagerResourceGroupRequest &request)const;
1252+
void changeResourceManagerResourceGroupAsync(const Model::ChangeResourceManagerResourceGroupRequest& request, const ChangeResourceManagerResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
1253+
ChangeResourceManagerResourceGroupOutcomeCallable changeResourceManagerResourceGroupCallable(const Model::ChangeResourceManagerResourceGroupRequest& request) const;
12461254
CheckFileDeploymentOutcome checkFileDeployment(const Model::CheckFileDeploymentRequest &request)const;
12471255
void checkFileDeploymentAsync(const Model::CheckFileDeploymentRequest& request, const CheckFileDeploymentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
12481256
CheckFileDeploymentOutcomeCallable checkFileDeploymentCallable(const Model::CheckFileDeploymentRequest& request) const;
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPREQUEST_H_
18+
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPREQUEST_H_
19+
20+
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Dataworks_public {
28+
namespace Model {
29+
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ChangeResourceManagerResourceGroupRequest : public RpcServiceRequest {
30+
public:
31+
ChangeResourceManagerResourceGroupRequest();
32+
~ChangeResourceManagerResourceGroupRequest();
33+
std::string getResourceId() const;
34+
void setResourceId(const std::string &resourceId);
35+
std::string getResourceType() const;
36+
void setResourceType(const std::string &resourceType);
37+
std::string getResourceManagerResourceGroupId() const;
38+
void setResourceManagerResourceGroupId(const std::string &resourceManagerResourceGroupId);
39+
40+
private:
41+
std::string resourceId_;
42+
std::string resourceType_;
43+
std::string resourceManagerResourceGroupId_;
44+
};
45+
} // namespace Model
46+
} // namespace Dataworks_public
47+
} // namespace AlibabaCloud
48+
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPREQUEST_H_
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPRESULT_H_
18+
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Dataworks_public
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ChangeResourceManagerResourceGroupResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
ChangeResourceManagerResourceGroupResult();
38+
explicit ChangeResourceManagerResourceGroupResult(const std::string &payload);
39+
~ChangeResourceManagerResourceGroupResult();
40+
int getHttpStatusCode()const;
41+
bool getData()const;
42+
bool getSuccess()const;
43+
44+
protected:
45+
void parse(const std::string &payload);
46+
private:
47+
int httpStatusCode_;
48+
bool data_;
49+
bool success_;
50+
51+
};
52+
}
53+
}
54+
}
55+
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CHANGERESOURCEMANAGERRESOURCEGROUPRESULT_H_

dataworks-public/include/alibabacloud/dataworks-public/model/ListBaselinesRequest.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListBaselinesRequest : public RpcServ
3434
void setOwner(const std::string &owner);
3535
std::string getSearchText() const;
3636
void setSearchText(const std::string &searchText);
37-
std::string getProjectEnv() const;
38-
void setProjectEnv(const std::string &projectEnv);
3937
std::string getPriority() const;
4038
void setPriority(const std::string &priority);
4139
int getPageNumber() const;
@@ -52,7 +50,6 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListBaselinesRequest : public RpcServ
5250
private:
5351
std::string owner_;
5452
std::string searchText_;
55-
std::string projectEnv_;
5653
std::string priority_;
5754
int pageNumber_;
5855
bool enable_;

dataworks-public/include/alibabacloud/dataworks-public/model/ListResourceGroupsRequest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListResourceGroupsRequest : public Rp
3838
void setBizExtKey(const std::string &bizExtKey);
3939
std::vector<Tags> getTags() const;
4040
void setTags(const std::vector<Tags> &tags);
41+
std::string getTypeNames() const;
42+
void setTypeNames(const std::string &typeNames);
4143
std::string getResourceManagerResourceGroupId() const;
4244
void setResourceManagerResourceGroupId(const std::string &resourceManagerResourceGroupId);
4345
int getResourceGroupType() const;
@@ -48,6 +50,7 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListResourceGroupsRequest : public Rp
4850
private:
4951
std::string bizExtKey_;
5052
std::vector<Tags> tags_;
53+
std::string typeNames_;
5154
std::string resourceManagerResourceGroupId_;
5255
int resourceGroupType_;
5356
std::string keyword_;

dataworks-public/src/Dataworks-publicClient.cc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,42 @@ Dataworks_publicClient::ApprovePermissionApplyOrderOutcomeCallable Dataworks_pub
195195
return task->get_future();
196196
}
197197

198+
Dataworks_publicClient::ChangeResourceManagerResourceGroupOutcome Dataworks_publicClient::changeResourceManagerResourceGroup(const ChangeResourceManagerResourceGroupRequest &request) const
199+
{
200+
auto endpointOutcome = endpointProvider_->getEndpoint();
201+
if (!endpointOutcome.isSuccess())
202+
return ChangeResourceManagerResourceGroupOutcome(endpointOutcome.error());
203+
204+
auto outcome = makeRequest(endpointOutcome.result(), request);
205+
206+
if (outcome.isSuccess())
207+
return ChangeResourceManagerResourceGroupOutcome(ChangeResourceManagerResourceGroupResult(outcome.result()));
208+
else
209+
return ChangeResourceManagerResourceGroupOutcome(outcome.error());
210+
}
211+
212+
void Dataworks_publicClient::changeResourceManagerResourceGroupAsync(const ChangeResourceManagerResourceGroupRequest& request, const ChangeResourceManagerResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
213+
{
214+
auto fn = [this, request, handler, context]()
215+
{
216+
handler(this, request, changeResourceManagerResourceGroup(request), context);
217+
};
218+
219+
asyncExecute(new Runnable(fn));
220+
}
221+
222+
Dataworks_publicClient::ChangeResourceManagerResourceGroupOutcomeCallable Dataworks_publicClient::changeResourceManagerResourceGroupCallable(const ChangeResourceManagerResourceGroupRequest &request) const
223+
{
224+
auto task = std::make_shared<std::packaged_task<ChangeResourceManagerResourceGroupOutcome()>>(
225+
[this, request]()
226+
{
227+
return this->changeResourceManagerResourceGroup(request);
228+
});
229+
230+
asyncExecute(new Runnable([task]() { (*task)(); }));
231+
return task->get_future();
232+
}
233+
198234
Dataworks_publicClient::CheckFileDeploymentOutcome Dataworks_publicClient::checkFileDeployment(const CheckFileDeploymentRequest &request) const
199235
{
200236
auto endpointOutcome = endpointProvider_->getEndpoint();
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include <alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupRequest.h>
18+
19+
using AlibabaCloud::Dataworks_public::Model::ChangeResourceManagerResourceGroupRequest;
20+
21+
ChangeResourceManagerResourceGroupRequest::ChangeResourceManagerResourceGroupRequest()
22+
: RpcServiceRequest("dataworks-public", "2020-05-18", "ChangeResourceManagerResourceGroup") {
23+
setMethod(HttpRequest::Method::Post);
24+
}
25+
26+
ChangeResourceManagerResourceGroupRequest::~ChangeResourceManagerResourceGroupRequest() {}
27+
28+
std::string ChangeResourceManagerResourceGroupRequest::getResourceId() const {
29+
return resourceId_;
30+
}
31+
32+
void ChangeResourceManagerResourceGroupRequest::setResourceId(const std::string &resourceId) {
33+
resourceId_ = resourceId;
34+
setParameter(std::string("ResourceId"), resourceId);
35+
}
36+
37+
std::string ChangeResourceManagerResourceGroupRequest::getResourceType() const {
38+
return resourceType_;
39+
}
40+
41+
void ChangeResourceManagerResourceGroupRequest::setResourceType(const std::string &resourceType) {
42+
resourceType_ = resourceType;
43+
setParameter(std::string("ResourceType"), resourceType);
44+
}
45+
46+
std::string ChangeResourceManagerResourceGroupRequest::getResourceManagerResourceGroupId() const {
47+
return resourceManagerResourceGroupId_;
48+
}
49+
50+
void ChangeResourceManagerResourceGroupRequest::setResourceManagerResourceGroupId(const std::string &resourceManagerResourceGroupId) {
51+
resourceManagerResourceGroupId_ = resourceManagerResourceGroupId;
52+
setParameter(std::string("ResourceManagerResourceGroupId"), resourceManagerResourceGroupId);
53+
}
54+
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include <alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupResult.h>
18+
#include <json/json.h>
19+
20+
using namespace AlibabaCloud::Dataworks_public;
21+
using namespace AlibabaCloud::Dataworks_public::Model;
22+
23+
ChangeResourceManagerResourceGroupResult::ChangeResourceManagerResourceGroupResult() :
24+
ServiceResult()
25+
{}
26+
27+
ChangeResourceManagerResourceGroupResult::ChangeResourceManagerResourceGroupResult(const std::string &payload) :
28+
ServiceResult()
29+
{
30+
parse(payload);
31+
}
32+
33+
ChangeResourceManagerResourceGroupResult::~ChangeResourceManagerResourceGroupResult()
34+
{}
35+
36+
void ChangeResourceManagerResourceGroupResult::parse(const std::string &payload)
37+
{
38+
Json::Reader reader;
39+
Json::Value value;
40+
reader.parse(payload, value);
41+
setRequestId(value["RequestId"].asString());
42+
if(!value["Data"].isNull())
43+
data_ = value["Data"].asString() == "true";
44+
if(!value["HttpStatusCode"].isNull())
45+
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
46+
if(!value["Success"].isNull())
47+
success_ = value["Success"].asString() == "true";
48+
49+
}
50+
51+
int ChangeResourceManagerResourceGroupResult::getHttpStatusCode()const
52+
{
53+
return httpStatusCode_;
54+
}
55+
56+
bool ChangeResourceManagerResourceGroupResult::getData()const
57+
{
58+
return data_;
59+
}
60+
61+
bool ChangeResourceManagerResourceGroupResult::getSuccess()const
62+
{
63+
return success_;
64+
}
65+

0 commit comments

Comments
 (0)