Class: TencentCloud::Tdmq::V20200217::CreateEnvironmentRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::CreateEnvironmentRequest
- Defined in:
- lib/v20200217/models.rb
Overview
CreateEnvironment请求参数结构体
Instance Attribute Summary collapse
- #AutoSubscriptionCreation ⇒ Object
- #ClusterId ⇒ Object
- #EnvironmentId ⇒ Object
- #MsgTTL ⇒ Object
- #Remark ⇒ Object
- #RetentionPolicy ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(environmentid = nil, msgttl = nil, clusterid = nil, remark = nil, retentionpolicy = nil, autosubscriptioncreation = nil) ⇒ CreateEnvironmentRequest
constructor
A new instance of CreateEnvironmentRequest.
Constructor Details
#initialize(environmentid = nil, msgttl = nil, clusterid = nil, remark = nil, retentionpolicy = nil, autosubscriptioncreation = nil) ⇒ CreateEnvironmentRequest
Returns a new instance of CreateEnvironmentRequest.
1428 1429 1430 1431 1432 1433 1434 1435 |
# File 'lib/v20200217/models.rb', line 1428 def initialize(environmentid=nil, msgttl=nil, clusterid=nil, remark=nil, retentionpolicy=nil, autosubscriptioncreation=nil) @EnvironmentId = environmentid @MsgTTL = msgttl @ClusterId = clusterid @Remark = remark @RetentionPolicy = retentionpolicy @AutoSubscriptionCreation = autosubscriptioncreation end |
Instance Attribute Details
#AutoSubscriptionCreation ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def AutoSubscriptionCreation @AutoSubscriptionCreation end |
#ClusterId ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def ClusterId @ClusterId end |
#EnvironmentId ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def EnvironmentId @EnvironmentId end |
#MsgTTL ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def MsgTTL @MsgTTL end |
#Remark ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def Remark @Remark end |
#RetentionPolicy ⇒ Object
1426 1427 1428 |
# File 'lib/v20200217/models.rb', line 1426 def RetentionPolicy @RetentionPolicy end |
Instance Method Details
#deserialize(params) ⇒ Object
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 |
# File 'lib/v20200217/models.rb', line 1437 def deserialize(params) @EnvironmentId = params['EnvironmentId'] @MsgTTL = params['MsgTTL'] @ClusterId = params['ClusterId'] @Remark = params['Remark'] unless params['RetentionPolicy'].nil? @RetentionPolicy = RetentionPolicy.new @RetentionPolicy.deserialize(params['RetentionPolicy']) end @AutoSubscriptionCreation = params['AutoSubscriptionCreation'] end |