Class: TencentCloud::Cdwch::V20200915::CreateBackUpScheduleRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdwch::V20200915::CreateBackUpScheduleRequest
- Defined in:
- lib/v20200915/models.rb
Overview
CreateBackUpSchedule请求参数结构体
Instance Attribute Summary collapse
- #BackUpTables ⇒ Object
- #ExecuteHour ⇒ Object
- #InstanceId ⇒ Object
- #OperationType ⇒ Object
- #RetainDays ⇒ Object
- #ScheduleId ⇒ Object
- #ScheduleType ⇒ Object
- #WeekDays ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, scheduletype = nil, operationtype = nil, retaindays = nil, scheduleid = nil, weekdays = nil, executehour = nil, backuptables = nil) ⇒ CreateBackUpScheduleRequest
constructor
A new instance of CreateBackUpScheduleRequest.
Constructor Details
#initialize(instanceid = nil, scheduletype = nil, operationtype = nil, retaindays = nil, scheduleid = nil, weekdays = nil, executehour = nil, backuptables = nil) ⇒ CreateBackUpScheduleRequest
Returns a new instance of CreateBackUpScheduleRequest.
499 500 501 502 503 504 505 506 507 508 |
# File 'lib/v20200915/models.rb', line 499 def initialize(instanceid=nil, scheduletype=nil, operationtype=nil, retaindays=nil, scheduleid=nil, weekdays=nil, executehour=nil, backuptables=nil) @InstanceId = instanceid @ScheduleType = scheduletype @OperationType = operationtype @RetainDays = retaindays @ScheduleId = scheduleid @WeekDays = weekdays @ExecuteHour = executehour @BackUpTables = backuptables end |
Instance Attribute Details
#BackUpTables ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def BackUpTables @BackUpTables end |
#ExecuteHour ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def ExecuteHour @ExecuteHour end |
#InstanceId ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def InstanceId @InstanceId end |
#OperationType ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def OperationType @OperationType end |
#RetainDays ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def RetainDays @RetainDays end |
#ScheduleId ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def ScheduleId @ScheduleId end |
#ScheduleType ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def ScheduleType @ScheduleType end |
#WeekDays ⇒ Object
497 498 499 |
# File 'lib/v20200915/models.rb', line 497 def WeekDays @WeekDays end |
Instance Method Details
#deserialize(params) ⇒ Object
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 |
# File 'lib/v20200915/models.rb', line 510 def deserialize(params) @InstanceId = params['InstanceId'] @ScheduleType = params['ScheduleType'] @OperationType = params['OperationType'] @RetainDays = params['RetainDays'] @ScheduleId = params['ScheduleId'] @WeekDays = params['WeekDays'] @ExecuteHour = params['ExecuteHour'] unless params['BackUpTables'].nil? @BackUpTables = [] params['BackUpTables'].each do |i| backuptablecontent_tmp = BackupTableContent.new backuptablecontent_tmp.deserialize(i) @BackUpTables << backuptablecontent_tmp end end end |