Export instance relative API.

This commit is contained in:
sdk-team
2021-08-10 07:58:34 +00:00
parent 58cbb932cd
commit 11e315b724
21 changed files with 381 additions and 1 deletions

View File

@@ -132,6 +132,8 @@
#include "model/ListPhoneNumbersOfSkillGroupResult.h"
#include "model/ListPrivilegesOfUserRequest.h"
#include "model/ListPrivilegesOfUserResult.h"
#include "model/ListRamUsersRequest.h"
#include "model/ListRamUsersResult.h"
#include "model/ListRealtimeAgentStatesRequest.h"
#include "model/ListRealtimeAgentStatesResult.h"
#include "model/ListRealtimeSkillGroupStatesRequest.h"
@@ -392,6 +394,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListPrivilegesOfUserResult> ListPrivilegesOfUserOutcome;
typedef std::future<ListPrivilegesOfUserOutcome> ListPrivilegesOfUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListPrivilegesOfUserRequest&, const ListPrivilegesOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivilegesOfUserAsyncHandler;
typedef Outcome<Error, Model::ListRamUsersResult> ListRamUsersOutcome;
typedef std::future<ListRamUsersOutcome> ListRamUsersOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListRamUsersRequest&, const ListRamUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRamUsersAsyncHandler;
typedef Outcome<Error, Model::ListRealtimeAgentStatesResult> ListRealtimeAgentStatesOutcome;
typedef std::future<ListRealtimeAgentStatesOutcome> ListRealtimeAgentStatesOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListRealtimeAgentStatesRequest&, const ListRealtimeAgentStatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRealtimeAgentStatesAsyncHandler;
@@ -691,6 +696,9 @@ namespace AlibabaCloud
ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const;
void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const;
ListRamUsersOutcome listRamUsers(const Model::ListRamUsersRequest &request)const;
void listRamUsersAsync(const Model::ListRamUsersRequest& request, const ListRamUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRamUsersOutcomeCallable listRamUsersCallable(const Model::ListRamUsersRequest& request) const;
ListRealtimeAgentStatesOutcome listRealtimeAgentStates(const Model::ListRealtimeAgentStatesRequest &request)const;
void listRealtimeAgentStatesAsync(const Model::ListRealtimeAgentStatesRequest& request, const ListRealtimeAgentStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRealtimeAgentStatesOutcomeCallable listRealtimeAgentStatesCallable(const Model::ListRealtimeAgentStatesRequest& request) const;

View File

@@ -73,6 +73,7 @@ namespace AlibabaCloud
long reserved;
};
UserContext userContext;
long contextId;
CallContext callContext;
};

View File

@@ -75,6 +75,7 @@ namespace AlibabaCloud
long reserved;
};
UserContext userContext;
long contextId;
CallContext callContext;
};

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
long reserved;
};
UserContext userContext;
long contextId;
CallContext callContext;
};

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
long reserved;
};
UserContext userContext;
long contextId;
CallContext callContext;
};

View File

@@ -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_CCC_MODEL_LISTRAMUSERSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListRamUsersRequest : public RpcServiceRequest
{
public:
ListRamUsersRequest();
~ListRamUsersRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getSearchPattern()const;
void setSearchPattern(const std::string& searchPattern);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNumber_;
std::string searchPattern_;
std::string instanceId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListRamUsersResult : public ServiceResult
{
public:
struct Data
{
struct RamUser
{
std::string loginName;
std::string email;
long aliyunUid;
bool primary;
std::string displayName;
std::string ramId;
std::string mobile;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<RamUser> list;
};
ListRamUsersResult();
explicit ListRamUsersResult(const std::string &payload);
~ListRamUsersResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_

View File

@@ -71,6 +71,7 @@ namespace AlibabaCloud
std::vector<std::string> signedSkillGroupIdList;
};
UserContext userContext;
long contextId;
CallContext callContext;
};

View File

@@ -77,6 +77,7 @@ namespace AlibabaCloud
long reserved;
};
UserContext userContext;
long contextId;
CallContext callContext;
};