Group, Plugin support tag authentication.

This commit is contained in:
sdk-team
2019-08-08 11:58:23 +08:00
parent 14b6a27113
commit 1f20945851
24 changed files with 278 additions and 1 deletions

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiGroupRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
CreateApiGroupRequest();
@@ -43,6 +48,8 @@ namespace AlibabaCloud
void setDescription(const std::string& description);
std::string getSource()const;
void setSource(const std::string& source);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getAccessKeyId()const;
@@ -53,6 +60,7 @@ namespace AlibabaCloud
std::string securityToken_;
std::string description_;
std::string source_;
std::vector<Tag> tag_;
std::string groupName_;
std::string accessKeyId_;

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::string getSubDomain()const;
std::string getDescription()const;
std::string getInstanceId()const;
bool getTagStatus()const;
std::string getInstanceType()const;
std::string getGroupId()const;
@@ -51,6 +52,7 @@ namespace AlibabaCloud
std::string subDomain_;
std::string description_;
std::string instanceId_;
bool tagStatus_;
std::string instanceType_;
std::string groupId_;

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT CreateAppRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
CreateAppRequest();
@@ -41,6 +46,8 @@ namespace AlibabaCloud
void setSecurityToken(const std::string& securityToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
@@ -48,6 +55,7 @@ namespace AlibabaCloud
std::string appName_;
std::string securityToken_;
std::string description_;
std::vector<Tag> tag_;
std::string accessKeyId_;
};

View File

@@ -38,11 +38,13 @@ namespace AlibabaCloud
explicit CreateAppResult(const std::string &payload);
~CreateAppResult();
long getAppId()const;
bool getTagStatus()const;
protected:
void parse(const std::string &payload);
private:
long appId_;
bool tagStatus_;
};
}

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiGroupRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
DeleteApiGroupRequest();
@@ -39,12 +44,15 @@ namespace AlibabaCloud
void setSecurityToken(const std::string& securityToken);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string securityToken_;
std::string groupId_;
std::vector<Tag> tag_;
std::string accessKeyId_;
};

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
DescribeApiGroupRequest();
@@ -39,12 +44,15 @@ namespace AlibabaCloud
void setSecurityToken(const std::string& securityToken);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string securityToken_;
std::string groupId_;
std::vector<Tag> tag_;
std::string accessKeyId_;
};

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupsRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
DescribeApiGroupsRequest();
@@ -41,6 +46,10 @@ namespace AlibabaCloud
void setGroupId(const std::string& groupId);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
bool getEnableTagAuth()const;
void setEnableTagAuth(bool enableTagAuth);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
int getPageNumber()const;
@@ -52,6 +61,8 @@ namespace AlibabaCloud
std::string securityToken_;
std::string groupId_;
int pageSize_;
std::vector<Tag> tag_;
bool enableTagAuth_;
std::string groupName_;
int pageNumber_;
std::string accessKeyId_;

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
DescribeApisRequest();
@@ -47,6 +52,10 @@ namespace AlibabaCloud
void setGroupId(const std::string& groupId);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
bool getEnableTagAuth()const;
void setEnableTagAuth(bool enableTagAuth);
std::string getApiId()const;
void setApiId(const std::string& apiId);
int getPageNumber()const;
@@ -61,6 +70,8 @@ namespace AlibabaCloud
std::string securityToken_;
std::string groupId_;
int pageSize_;
std::vector<Tag> tag_;
bool enableTagAuth_;
std::string apiId_;
int pageNumber_;
std::string accessKeyId_;

View File

@@ -50,6 +50,8 @@ namespace AlibabaCloud
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
bool getEnableTagAuth()const;
void setEnableTagAuth(bool enableTagAuth);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
@@ -61,6 +63,7 @@ namespace AlibabaCloud
long appId_;
int pageSize_;
std::vector<Tag> tag_;
bool enableTagAuth_;
int pageNumber_;
std::string accessKeyId_;

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApisRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
DescribeDeployedApisRequest();
@@ -45,6 +50,10 @@ namespace AlibabaCloud
void setGroupId(const std::string& groupId);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
bool getEnableTagAuth()const;
void setEnableTagAuth(bool enableTagAuth);
std::string getApiId()const;
void setApiId(const std::string& apiId);
int getPageNumber()const;
@@ -58,6 +67,8 @@ namespace AlibabaCloud
std::string securityToken_;
std::string groupId_;
int pageSize_;
std::vector<Tag> tag_;
bool enableTagAuth_;
std::string apiId_;
int pageNumber_;
std::string accessKeyId_;

View File

@@ -30,6 +30,11 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiGroupRequest : public RpcServiceRequest
{
struct Tag
{
std::string value;
std::string key;
};
public:
ModifyApiGroupRequest();
@@ -41,6 +46,8 @@ namespace AlibabaCloud
void setGroupId(const std::string& groupId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getAccessKeyId()const;
@@ -50,6 +57,7 @@ namespace AlibabaCloud
std::string securityToken_;
std::string groupId_;
std::string description_;
std::vector<Tag> tag_;
std::string groupName_;
std::string accessKeyId_;