Generated 2021-03-08 for eds-user.
This commit is contained in:
@@ -33,8 +33,12 @@ set(eds-user_public_header_model
|
||||
include/alibabacloud/eds-user/model/CreateOrgResult.h
|
||||
include/alibabacloud/eds-user/model/CreatePropertyRequest.h
|
||||
include/alibabacloud/eds-user/model/CreatePropertyResult.h
|
||||
include/alibabacloud/eds-user/model/CreateResourceGroupRequest.h
|
||||
include/alibabacloud/eds-user/model/CreateResourceGroupResult.h
|
||||
include/alibabacloud/eds-user/model/CreateUsersRequest.h
|
||||
include/alibabacloud/eds-user/model/CreateUsersResult.h
|
||||
include/alibabacloud/eds-user/model/DeleteResourceGroupRequest.h
|
||||
include/alibabacloud/eds-user/model/DeleteResourceGroupResult.h
|
||||
include/alibabacloud/eds-user/model/DeleteUserPropertyValueRequest.h
|
||||
include/alibabacloud/eds-user/model/DeleteUserPropertyValueResult.h
|
||||
include/alibabacloud/eds-user/model/DescribeMfaDevicesRequest.h
|
||||
@@ -43,6 +47,8 @@ set(eds-user_public_header_model
|
||||
include/alibabacloud/eds-user/model/DescribeOrgByLayerResult.h
|
||||
include/alibabacloud/eds-user/model/DescribeOrgsRequest.h
|
||||
include/alibabacloud/eds-user/model/DescribeOrgsResult.h
|
||||
include/alibabacloud/eds-user/model/DescribeResourceGroupsRequest.h
|
||||
include/alibabacloud/eds-user/model/DescribeResourceGroupsResult.h
|
||||
include/alibabacloud/eds-user/model/DescribeUsersRequest.h
|
||||
include/alibabacloud/eds-user/model/DescribeUsersResult.h
|
||||
include/alibabacloud/eds-user/model/FilterUsersRequest.h
|
||||
@@ -102,8 +108,12 @@ set(eds-user_src
|
||||
src/model/CreateOrgResult.cc
|
||||
src/model/CreatePropertyRequest.cc
|
||||
src/model/CreatePropertyResult.cc
|
||||
src/model/CreateResourceGroupRequest.cc
|
||||
src/model/CreateResourceGroupResult.cc
|
||||
src/model/CreateUsersRequest.cc
|
||||
src/model/CreateUsersResult.cc
|
||||
src/model/DeleteResourceGroupRequest.cc
|
||||
src/model/DeleteResourceGroupResult.cc
|
||||
src/model/DeleteUserPropertyValueRequest.cc
|
||||
src/model/DeleteUserPropertyValueResult.cc
|
||||
src/model/DescribeMfaDevicesRequest.cc
|
||||
@@ -112,6 +122,8 @@ set(eds-user_src
|
||||
src/model/DescribeOrgByLayerResult.cc
|
||||
src/model/DescribeOrgsRequest.cc
|
||||
src/model/DescribeOrgsResult.cc
|
||||
src/model/DescribeResourceGroupsRequest.cc
|
||||
src/model/DescribeResourceGroupsResult.cc
|
||||
src/model/DescribeUsersRequest.cc
|
||||
src/model/DescribeUsersResult.cc
|
||||
src/model/FilterUsersRequest.cc
|
||||
|
||||
@@ -34,8 +34,12 @@
|
||||
#include "model/CreateOrgResult.h"
|
||||
#include "model/CreatePropertyRequest.h"
|
||||
#include "model/CreatePropertyResult.h"
|
||||
#include "model/CreateResourceGroupRequest.h"
|
||||
#include "model/CreateResourceGroupResult.h"
|
||||
#include "model/CreateUsersRequest.h"
|
||||
#include "model/CreateUsersResult.h"
|
||||
#include "model/DeleteResourceGroupRequest.h"
|
||||
#include "model/DeleteResourceGroupResult.h"
|
||||
#include "model/DeleteUserPropertyValueRequest.h"
|
||||
#include "model/DeleteUserPropertyValueResult.h"
|
||||
#include "model/DescribeMfaDevicesRequest.h"
|
||||
@@ -44,6 +48,8 @@
|
||||
#include "model/DescribeOrgByLayerResult.h"
|
||||
#include "model/DescribeOrgsRequest.h"
|
||||
#include "model/DescribeOrgsResult.h"
|
||||
#include "model/DescribeResourceGroupsRequest.h"
|
||||
#include "model/DescribeResourceGroupsResult.h"
|
||||
#include "model/DescribeUsersRequest.h"
|
||||
#include "model/DescribeUsersResult.h"
|
||||
#include "model/FilterUsersRequest.h"
|
||||
@@ -115,9 +121,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreatePropertyResult> CreatePropertyOutcome;
|
||||
typedef std::future<CreatePropertyOutcome> CreatePropertyOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::CreatePropertyRequest&, const CreatePropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePropertyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourceGroupResult> CreateResourceGroupOutcome;
|
||||
typedef std::future<CreateResourceGroupOutcome> CreateResourceGroupOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::CreateResourceGroupRequest&, const CreateResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUsersResult> CreateUsersOutcome;
|
||||
typedef std::future<CreateUsersOutcome> CreateUsersOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::CreateUsersRequest&, const CreateUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteResourceGroupResult> DeleteResourceGroupOutcome;
|
||||
typedef std::future<DeleteResourceGroupOutcome> DeleteResourceGroupOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::DeleteResourceGroupRequest&, const DeleteResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserPropertyValueResult> DeleteUserPropertyValueOutcome;
|
||||
typedef std::future<DeleteUserPropertyValueOutcome> DeleteUserPropertyValueOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::DeleteUserPropertyValueRequest&, const DeleteUserPropertyValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserPropertyValueAsyncHandler;
|
||||
@@ -130,6 +142,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeOrgsResult> DescribeOrgsOutcome;
|
||||
typedef std::future<DescribeOrgsOutcome> DescribeOrgsOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::DescribeOrgsRequest&, const DescribeOrgsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOrgsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeResourceGroupsResult> DescribeResourceGroupsOutcome;
|
||||
typedef std::future<DescribeResourceGroupsOutcome> DescribeResourceGroupsOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::DescribeResourceGroupsRequest&, const DescribeResourceGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResourceGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUsersResult> DescribeUsersOutcome;
|
||||
typedef std::future<DescribeUsersOutcome> DescribeUsersOutcomeCallable;
|
||||
typedef std::function<void(const Eds_userClient*, const Model::DescribeUsersRequest&, const DescribeUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUsersAsyncHandler;
|
||||
@@ -219,9 +234,15 @@ namespace AlibabaCloud
|
||||
CreatePropertyOutcome createProperty(const Model::CreatePropertyRequest &request)const;
|
||||
void createPropertyAsync(const Model::CreatePropertyRequest& request, const CreatePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePropertyOutcomeCallable createPropertyCallable(const Model::CreatePropertyRequest& request) const;
|
||||
CreateResourceGroupOutcome createResourceGroup(const Model::CreateResourceGroupRequest &request)const;
|
||||
void createResourceGroupAsync(const Model::CreateResourceGroupRequest& request, const CreateResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourceGroupOutcomeCallable createResourceGroupCallable(const Model::CreateResourceGroupRequest& request) const;
|
||||
CreateUsersOutcome createUsers(const Model::CreateUsersRequest &request)const;
|
||||
void createUsersAsync(const Model::CreateUsersRequest& request, const CreateUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUsersOutcomeCallable createUsersCallable(const Model::CreateUsersRequest& request) const;
|
||||
DeleteResourceGroupOutcome deleteResourceGroup(const Model::DeleteResourceGroupRequest &request)const;
|
||||
void deleteResourceGroupAsync(const Model::DeleteResourceGroupRequest& request, const DeleteResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteResourceGroupOutcomeCallable deleteResourceGroupCallable(const Model::DeleteResourceGroupRequest& request) const;
|
||||
DeleteUserPropertyValueOutcome deleteUserPropertyValue(const Model::DeleteUserPropertyValueRequest &request)const;
|
||||
void deleteUserPropertyValueAsync(const Model::DeleteUserPropertyValueRequest& request, const DeleteUserPropertyValueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserPropertyValueOutcomeCallable deleteUserPropertyValueCallable(const Model::DeleteUserPropertyValueRequest& request) const;
|
||||
@@ -234,6 +255,9 @@ namespace AlibabaCloud
|
||||
DescribeOrgsOutcome describeOrgs(const Model::DescribeOrgsRequest &request)const;
|
||||
void describeOrgsAsync(const Model::DescribeOrgsRequest& request, const DescribeOrgsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOrgsOutcomeCallable describeOrgsCallable(const Model::DescribeOrgsRequest& request) const;
|
||||
DescribeResourceGroupsOutcome describeResourceGroups(const Model::DescribeResourceGroupsRequest &request)const;
|
||||
void describeResourceGroupsAsync(const Model::DescribeResourceGroupsRequest& request, const DescribeResourceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeResourceGroupsOutcomeCallable describeResourceGroupsCallable(const Model::DescribeResourceGroupsRequest& request) const;
|
||||
DescribeUsersOutcome describeUsers(const Model::DescribeUsersRequest &request)const;
|
||||
void describeUsersAsync(const Model::DescribeUsersRequest& request, const DescribeUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUsersOutcomeCallable describeUsersCallable(const Model::DescribeUsersRequest& request) const;
|
||||
|
||||
@@ -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_EDS_USER_MODEL_CREATERESOURCEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_CREATERESOURCEGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Eds_user {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT CreateResourceGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateResourceGroupRequest();
|
||||
~CreateResourceGroupRequest();
|
||||
std::string getResourceGroupName() const;
|
||||
void setResourceGroupName(const std::string &resourceGroupName);
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
long getIsResourceGroupWithOfficeSite() const;
|
||||
void setIsResourceGroupWithOfficeSite(long isResourceGroupWithOfficeSite);
|
||||
|
||||
private:
|
||||
std::string resourceGroupName_;
|
||||
std::string platform_;
|
||||
long isResourceGroupWithOfficeSite_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Eds_user
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_CREATERESOURCEGROUPREQUEST_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_EDS_USER_MODEL_CREATERESOURCEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_CREATERESOURCEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eds_user
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT CreateResourceGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateResourceGroupResult();
|
||||
explicit CreateResourceGroupResult(const std::string &payload);
|
||||
~CreateResourceGroupResult();
|
||||
std::string getResourceGroupId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resourceGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_CREATERESOURCEGROUPRESULT_H_
|
||||
@@ -58,11 +58,13 @@ namespace AlibabaCloud
|
||||
CreateUsersResult();
|
||||
explicit CreateUsersResult(const std::string &payload);
|
||||
~CreateUsersResult();
|
||||
bool getAllSucceed()const;
|
||||
CreateResult getCreateResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool allSucceed_;
|
||||
CreateResult createResult_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_EDS_USER_MODEL_DELETERESOURCEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_DELETERESOURCEGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Eds_user {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT DeleteResourceGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteResourceGroupRequest();
|
||||
~DeleteResourceGroupRequest();
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::vector<std::string> getResourceGroupIds() const;
|
||||
void setResourceGroupIds(const std::vector<std::string> &resourceGroupIds);
|
||||
|
||||
private:
|
||||
std::string platform_;
|
||||
std::string resourceGroupId_;
|
||||
std::vector<std::string> resourceGroupIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Eds_user
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_DELETERESOURCEGROUPREQUEST_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_EDS_USER_MODEL_DELETERESOURCEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_DELETERESOURCEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eds_user
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT DeleteResourceGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteResourceGroupResult();
|
||||
explicit DeleteResourceGroupResult(const std::string &payload);
|
||||
~DeleteResourceGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_DELETERESOURCEGROUPRESULT_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_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSREQUEST_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Eds_user {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT DescribeResourceGroupsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeResourceGroupsRequest();
|
||||
~DescribeResourceGroupsRequest();
|
||||
std::string getResourceGroupName() const;
|
||||
void setResourceGroupName(const std::string &resourceGroupName);
|
||||
long getNeedContainResourceGroupWithOfficeSite() const;
|
||||
void setNeedContainResourceGroupWithOfficeSite(long needContainResourceGroupWithOfficeSite);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
std::vector<std::string> getResourceGroupIds() const;
|
||||
void setResourceGroupIds(const std::vector<std::string> &resourceGroupIds);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string resourceGroupName_;
|
||||
long needContainResourceGroupWithOfficeSite_;
|
||||
int pageNumber_;
|
||||
std::string platform_;
|
||||
std::vector<std::string> resourceGroupIds_;
|
||||
int pageSize_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Eds_user
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSREQUEST_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_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/eds-user/Eds_userExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eds_user
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EDS_USER_EXPORT DescribeResourceGroupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourceGroupItem
|
||||
{
|
||||
struct Policy
|
||||
{
|
||||
bool isDefault;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
struct Timer
|
||||
{
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<ResourceGroupItem::Policy> policies;
|
||||
std::string resourceGroupId;
|
||||
std::string resourceCount;
|
||||
std::string createTime;
|
||||
std::vector<ResourceGroupItem::Timer> timers;
|
||||
std::string resourceGroupName;
|
||||
std::string authCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeResourceGroupsResult();
|
||||
explicit DescribeResourceGroupsResult(const std::string &payload);
|
||||
~DescribeResourceGroupsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::vector<ResourceGroupItem> getResourceGroup()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::vector<ResourceGroupItem> resourceGroup_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBERESOURCEGROUPSRESULT_H_
|
||||
@@ -267,6 +267,42 @@ Eds_userClient::CreatePropertyOutcomeCallable Eds_userClient::createPropertyCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::CreateResourceGroupOutcome Eds_userClient::createResourceGroup(const CreateResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateResourceGroupOutcome(CreateResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Eds_userClient::createResourceGroupAsync(const CreateResourceGroupRequest& request, const CreateResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Eds_userClient::CreateResourceGroupOutcomeCallable Eds_userClient::createResourceGroupCallable(const CreateResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::CreateUsersOutcome Eds_userClient::createUsers(const CreateUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +339,42 @@ Eds_userClient::CreateUsersOutcomeCallable Eds_userClient::createUsersCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::DeleteResourceGroupOutcome Eds_userClient::deleteResourceGroup(const DeleteResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteResourceGroupOutcome(DeleteResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Eds_userClient::deleteResourceGroupAsync(const DeleteResourceGroupRequest& request, const DeleteResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Eds_userClient::DeleteResourceGroupOutcomeCallable Eds_userClient::deleteResourceGroupCallable(const DeleteResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::DeleteUserPropertyValueOutcome Eds_userClient::deleteUserPropertyValue(const DeleteUserPropertyValueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +519,42 @@ Eds_userClient::DescribeOrgsOutcomeCallable Eds_userClient::describeOrgsCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::DescribeResourceGroupsOutcome Eds_userClient::describeResourceGroups(const DescribeResourceGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeResourceGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeResourceGroupsOutcome(DescribeResourceGroupsResult(outcome.result()));
|
||||
else
|
||||
return DescribeResourceGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Eds_userClient::describeResourceGroupsAsync(const DescribeResourceGroupsRequest& request, const DescribeResourceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeResourceGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Eds_userClient::DescribeResourceGroupsOutcomeCallable Eds_userClient::describeResourceGroupsCallable(const DescribeResourceGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeResourceGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeResourceGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Eds_userClient::DescribeUsersOutcome Eds_userClient::describeUsers(const DescribeUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
54
eds-user/src/model/CreateResourceGroupRequest.cc
Normal file
54
eds-user/src/model/CreateResourceGroupRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CreateResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CreateResourceGroupRequest;
|
||||
|
||||
CreateResourceGroupRequest::CreateResourceGroupRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CreateResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceGroupRequest::~CreateResourceGroupRequest() {}
|
||||
|
||||
std::string CreateResourceGroupRequest::getResourceGroupName() const {
|
||||
return resourceGroupName_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setResourceGroupName(const std::string &resourceGroupName) {
|
||||
resourceGroupName_ = resourceGroupName;
|
||||
setParameter(std::string("ResourceGroupName"), resourceGroupName);
|
||||
}
|
||||
|
||||
std::string CreateResourceGroupRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
long CreateResourceGroupRequest::getIsResourceGroupWithOfficeSite() const {
|
||||
return isResourceGroupWithOfficeSite_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setIsResourceGroupWithOfficeSite(long isResourceGroupWithOfficeSite) {
|
||||
isResourceGroupWithOfficeSite_ = isResourceGroupWithOfficeSite;
|
||||
setParameter(std::string("IsResourceGroupWithOfficeSite"), std::to_string(isResourceGroupWithOfficeSite));
|
||||
}
|
||||
|
||||
51
eds-user/src/model/CreateResourceGroupResult.cc
Normal file
51
eds-user/src/model/CreateResourceGroupResult.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/eds-user/model/CreateResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CreateResourceGroupResult::CreateResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceGroupResult::CreateResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceGroupResult::~CreateResourceGroupResult()
|
||||
{}
|
||||
|
||||
void CreateResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceGroupResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
@@ -72,9 +72,16 @@ void CreateUsersResult::parse(const std::string &payload)
|
||||
failedUsersItemObject.errorMessage = createResultNodeFailedUsersfailedUsersItem["ErrorMessage"].asString();
|
||||
createResult_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
if(!value["AllSucceed"].isNull())
|
||||
allSucceed_ = value["AllSucceed"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateUsersResult::getAllSucceed()const
|
||||
{
|
||||
return allSucceed_;
|
||||
}
|
||||
|
||||
CreateUsersResult::CreateResult CreateUsersResult::getCreateResult()const
|
||||
{
|
||||
return createResult_;
|
||||
|
||||
56
eds-user/src/model/DeleteResourceGroupRequest.cc
Normal file
56
eds-user/src/model/DeleteResourceGroupRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/eds-user/model/DeleteResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DeleteResourceGroupRequest;
|
||||
|
||||
DeleteResourceGroupRequest::DeleteResourceGroupRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DeleteResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteResourceGroupRequest::~DeleteResourceGroupRequest() {}
|
||||
|
||||
std::string DeleteResourceGroupRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void DeleteResourceGroupRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
std::string DeleteResourceGroupRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::vector<DeleteResourceGroupRequest::std::string> DeleteResourceGroupRequest::getResourceGroupIds() const {
|
||||
return resourceGroupIds_;
|
||||
}
|
||||
|
||||
void DeleteResourceGroupRequest::setResourceGroupIds(const std::vector<DeleteResourceGroupRequest::std::string> &resourceGroupIds) {
|
||||
resourceGroupIds_ = resourceGroupIds;
|
||||
for(int dep1 = 0; dep1 != resourceGroupIds.size(); dep1++) {
|
||||
setParameter(std::string("ResourceGroupIds") + "." + std::to_string(dep1 + 1), resourceGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
eds-user/src/model/DeleteResourceGroupResult.cc
Normal file
44
eds-user/src/model/DeleteResourceGroupResult.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/eds-user/model/DeleteResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DeleteResourceGroupResult::DeleteResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceGroupResult::DeleteResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceGroupResult::~DeleteResourceGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
83
eds-user/src/model/DescribeResourceGroupsRequest.cc
Normal file
83
eds-user/src/model/DescribeResourceGroupsRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/eds-user/model/DescribeResourceGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DescribeResourceGroupsRequest;
|
||||
|
||||
DescribeResourceGroupsRequest::DescribeResourceGroupsRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DescribeResourceGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeResourceGroupsRequest::~DescribeResourceGroupsRequest() {}
|
||||
|
||||
std::string DescribeResourceGroupsRequest::getResourceGroupName() const {
|
||||
return resourceGroupName_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setResourceGroupName(const std::string &resourceGroupName) {
|
||||
resourceGroupName_ = resourceGroupName;
|
||||
setParameter(std::string("ResourceGroupName"), resourceGroupName);
|
||||
}
|
||||
|
||||
long DescribeResourceGroupsRequest::getNeedContainResourceGroupWithOfficeSite() const {
|
||||
return needContainResourceGroupWithOfficeSite_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setNeedContainResourceGroupWithOfficeSite(long needContainResourceGroupWithOfficeSite) {
|
||||
needContainResourceGroupWithOfficeSite_ = needContainResourceGroupWithOfficeSite;
|
||||
setParameter(std::string("NeedContainResourceGroupWithOfficeSite"), std::to_string(needContainResourceGroupWithOfficeSite));
|
||||
}
|
||||
|
||||
int DescribeResourceGroupsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeResourceGroupsRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
std::vector<DescribeResourceGroupsRequest::std::string> DescribeResourceGroupsRequest::getResourceGroupIds() const {
|
||||
return resourceGroupIds_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setResourceGroupIds(const std::vector<DescribeResourceGroupsRequest::std::string> &resourceGroupIds) {
|
||||
resourceGroupIds_ = resourceGroupIds;
|
||||
for(int dep1 = 0; dep1 != resourceGroupIds.size(); dep1++) {
|
||||
setParameter(std::string("ResourceGroupIds") + "." + std::to_string(dep1 + 1), resourceGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeResourceGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeResourceGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
eds-user/src/model/DescribeResourceGroupsResult.cc
Normal file
94
eds-user/src/model/DescribeResourceGroupsResult.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/eds-user/model/DescribeResourceGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DescribeResourceGroupsResult::DescribeResourceGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceGroupsResult::DescribeResourceGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceGroupsResult::~DescribeResourceGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceGroupNode = value["ResourceGroup"]["ResourceGroupItem"];
|
||||
for (auto valueResourceGroupResourceGroupItem : allResourceGroupNode)
|
||||
{
|
||||
ResourceGroupItem resourceGroupObject;
|
||||
if(!valueResourceGroupResourceGroupItem["ResourceGroupId"].isNull())
|
||||
resourceGroupObject.resourceGroupId = valueResourceGroupResourceGroupItem["ResourceGroupId"].asString();
|
||||
if(!valueResourceGroupResourceGroupItem["ResourceGroupName"].isNull())
|
||||
resourceGroupObject.resourceGroupName = valueResourceGroupResourceGroupItem["ResourceGroupName"].asString();
|
||||
if(!valueResourceGroupResourceGroupItem["ResourceCount"].isNull())
|
||||
resourceGroupObject.resourceCount = valueResourceGroupResourceGroupItem["ResourceCount"].asString();
|
||||
if(!valueResourceGroupResourceGroupItem["AuthCount"].isNull())
|
||||
resourceGroupObject.authCount = valueResourceGroupResourceGroupItem["AuthCount"].asString();
|
||||
if(!valueResourceGroupResourceGroupItem["CreateTime"].isNull())
|
||||
resourceGroupObject.createTime = valueResourceGroupResourceGroupItem["CreateTime"].asString();
|
||||
auto allPoliciesNode = valueResourceGroupResourceGroupItem["Policies"]["Policy"];
|
||||
for (auto valueResourceGroupResourceGroupItemPoliciesPolicy : allPoliciesNode)
|
||||
{
|
||||
ResourceGroupItem::Policy policiesObject;
|
||||
if(!valueResourceGroupResourceGroupItemPoliciesPolicy["Id"].isNull())
|
||||
policiesObject.id = valueResourceGroupResourceGroupItemPoliciesPolicy["Id"].asString();
|
||||
if(!valueResourceGroupResourceGroupItemPoliciesPolicy["Name"].isNull())
|
||||
policiesObject.name = valueResourceGroupResourceGroupItemPoliciesPolicy["Name"].asString();
|
||||
if(!valueResourceGroupResourceGroupItemPoliciesPolicy["IsDefault"].isNull())
|
||||
policiesObject.isDefault = valueResourceGroupResourceGroupItemPoliciesPolicy["IsDefault"].asString() == "true";
|
||||
resourceGroupObject.policies.push_back(policiesObject);
|
||||
}
|
||||
auto allTimersNode = valueResourceGroupResourceGroupItem["Timers"]["Timer"];
|
||||
for (auto valueResourceGroupResourceGroupItemTimersTimer : allTimersNode)
|
||||
{
|
||||
ResourceGroupItem::Timer timersObject;
|
||||
if(!valueResourceGroupResourceGroupItemTimersTimer["Id"].isNull())
|
||||
timersObject.id = valueResourceGroupResourceGroupItemTimersTimer["Id"].asString();
|
||||
if(!valueResourceGroupResourceGroupItemTimersTimer["Name"].isNull())
|
||||
timersObject.name = valueResourceGroupResourceGroupItemTimersTimer["Name"].asString();
|
||||
resourceGroupObject.timers.push_back(timersObject);
|
||||
}
|
||||
resourceGroup_.push_back(resourceGroupObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeResourceGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeResourceGroupsResult::ResourceGroupItem> DescribeResourceGroupsResult::getResourceGroup()const
|
||||
{
|
||||
return resourceGroup_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user