Class: TencentCloud::Sts::V20180813::AssumeRoleWithSAMLRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180813/models.rb

Overview

AssumeRoleWithSAML请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(samlassertion = nil, principalarn = nil, rolearn = nil, rolesessionname = nil, durationseconds = nil) ⇒ AssumeRoleWithSAMLRequest

Returns a new instance of AssumeRoleWithSAMLRequest.



155
156
157
158
159
160
161
# File 'lib/v20180813/models.rb', line 155

def initialize(samlassertion=nil, principalarn=nil, rolearn=nil, rolesessionname=nil, durationseconds=nil)
  @SAMLAssertion = samlassertion
  @PrincipalArn = principalarn
  @RoleArn = rolearn
  @RoleSessionName = rolesessionname
  @DurationSeconds = durationseconds
end

Instance Attribute Details

#DurationSecondsObject

Parameters:

  • SAMLAssertion:

    base64 编码的 SAML 断言信息

  • PrincipalArn:

    扮演者访问描述名

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



153
154
155
# File 'lib/v20180813/models.rb', line 153

def DurationSeconds
  @DurationSeconds
end

#PrincipalArnObject

Parameters:

  • SAMLAssertion:

    base64 编码的 SAML 断言信息

  • PrincipalArn:

    扮演者访问描述名

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



153
154
155
# File 'lib/v20180813/models.rb', line 153

def PrincipalArn
  @PrincipalArn
end

#RoleArnObject

Parameters:

  • SAMLAssertion:

    base64 编码的 SAML 断言信息

  • PrincipalArn:

    扮演者访问描述名

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



153
154
155
# File 'lib/v20180813/models.rb', line 153

def RoleArn
  @RoleArn
end

#RoleSessionNameObject

Parameters:

  • SAMLAssertion:

    base64 编码的 SAML 断言信息

  • PrincipalArn:

    扮演者访问描述名

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



153
154
155
# File 'lib/v20180813/models.rb', line 153

def RoleSessionName
  @RoleSessionName
end

#SAMLAssertionObject

Parameters:

  • SAMLAssertion:

    base64 编码的 SAML 断言信息

  • PrincipalArn:

    扮演者访问描述名

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



153
154
155
# File 'lib/v20180813/models.rb', line 153

def SAMLAssertion
  @SAMLAssertion
end

Instance Method Details

#deserialize(params) ⇒ Object



163
164
165
166
167
168
169
# File 'lib/v20180813/models.rb', line 163

def deserialize(params)
  @SAMLAssertion = params['SAMLAssertion']
  @PrincipalArn = params['PrincipalArn']
  @RoleArn = params['RoleArn']
  @RoleSessionName = params['RoleSessionName']
  @DurationSeconds = params['DurationSeconds']
end