Public AssumeRole AssumeRoleWithSAML AssumeRoleWithOIDC for supporting sourceIdentity.
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
~AssumeRoleRequest();
|
||||
std::string getExternalId() const;
|
||||
void setExternalId(const std::string &externalId);
|
||||
std::string getSourceIdentity() const;
|
||||
void setSourceIdentity(const std::string &sourceIdentity);
|
||||
std::string getRoleSessionName() const;
|
||||
void setRoleSessionName(const std::string &roleSessionName);
|
||||
std::string getPolicy() const;
|
||||
@@ -43,6 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string externalId_;
|
||||
std::string sourceIdentity_;
|
||||
std::string roleSessionName_;
|
||||
std::string policy_;
|
||||
std::string roleArn_;
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace AlibabaCloud
|
||||
AssumeRoleResult();
|
||||
explicit AssumeRoleResult(const std::string &payload);
|
||||
~AssumeRoleResult();
|
||||
std::string getSourceIdentity()const;
|
||||
AssumedRoleUser getAssumedRoleUser()const;
|
||||
Credentials getCredentials()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sourceIdentity_;
|
||||
AssumedRoleUser assumedRoleUser_;
|
||||
Credentials credentials_;
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace AlibabaCloud
|
||||
AssumeRoleWithOIDCResult();
|
||||
explicit AssumeRoleWithOIDCResult(const std::string &payload);
|
||||
~AssumeRoleWithOIDCResult();
|
||||
std::string getSourceIdentity()const;
|
||||
OIDCTokenInfo getOIDCTokenInfo()const;
|
||||
AssumedRoleUser getAssumedRoleUser()const;
|
||||
Credentials getCredentials()const;
|
||||
@@ -65,6 +66,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sourceIdentity_;
|
||||
OIDCTokenInfo oIDCTokenInfo_;
|
||||
AssumedRoleUser assumedRoleUser_;
|
||||
Credentials credentials_;
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace AlibabaCloud
|
||||
AssumeRoleWithSAMLResult();
|
||||
explicit AssumeRoleWithSAMLResult(const std::string &payload);
|
||||
~AssumeRoleWithSAMLResult();
|
||||
std::string getSourceIdentity()const;
|
||||
SAMLAssertionInfo getSAMLAssertionInfo()const;
|
||||
AssumedRoleUser getAssumedRoleUser()const;
|
||||
Credentials getCredentials()const;
|
||||
@@ -63,6 +64,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sourceIdentity_;
|
||||
SAMLAssertionInfo sAMLAssertionInfo_;
|
||||
AssumedRoleUser assumedRoleUser_;
|
||||
Credentials credentials_;
|
||||
|
||||
Reference in New Issue
Block a user