Class: TencentCloud::Organization::V20210331::AttachPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Organization::V20210331::AttachPolicyRequest
- Defined in:
- lib/v20210331/models.rb
Overview
AttachPolicy请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targetid = nil, targettype = nil, policyid = nil, type = nil) ⇒ AttachPolicyRequest
constructor
A new instance of AttachPolicyRequest.
Constructor Details
#initialize(targetid = nil, targettype = nil, policyid = nil, type = nil) ⇒ AttachPolicyRequest
Returns a new instance of AttachPolicyRequest.
457 458 459 460 461 462 |
# File 'lib/v20210331/models.rb', line 457 def initialize(targetid=nil, targettype=nil, policyid=nil, type=nil) @TargetId = targetid @TargetType = targettype @PolicyId = policyid @Type = type end |
Instance Attribute Details
#PolicyId ⇒ Object
455 456 457 |
# File 'lib/v20210331/models.rb', line 455 def PolicyId @PolicyId end |
#TargetId ⇒ Object
455 456 457 |
# File 'lib/v20210331/models.rb', line 455 def TargetId @TargetId end |
#TargetType ⇒ Object
455 456 457 |
# File 'lib/v20210331/models.rb', line 455 def TargetType @TargetType end |
#Type ⇒ Object
455 456 457 |
# File 'lib/v20210331/models.rb', line 455 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
464 465 466 467 468 469 |
# File 'lib/v20210331/models.rb', line 464 def deserialize(params) @TargetId = params['TargetId'] @TargetType = params['TargetType'] @PolicyId = params['PolicyId'] @Type = params['Type'] end |