Class: TencentCloud::Iss::V20230517::AddRecordBackupPlanRequest

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

Overview

AddRecordBackupPlan请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templateid = nil, planname = nil, describe = nil, lifecycle = nil, channels = nil, organizationid = nil) ⇒ AddRecordBackupPlanRequest

Returns a new instance of AddRecordBackupPlanRequest.



577
578
579
580
581
582
583
584
# File 'lib/v20230517/models.rb', line 577

def initialize(templateid=nil, planname=nil, describe=nil, lifecycle=nil, channels=nil, organizationid=nil)
  @TemplateId = templateid
  @PlanName = planname
  @Describe = describe
  @LifeCycle = lifecycle
  @Channels = channels
  @OrganizationId = organizationid
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def Channels
  @Channels
end

#DescribeObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def Describe
  @Describe
end

#LifeCycleObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def LifeCycle
  @LifeCycle
end

#OrganizationIdObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def OrganizationId
  @OrganizationId
end

#PlanNameObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def PlanName
  @PlanName
end

#TemplateIdObject

Parameters:

  • TemplateId:

    录制模板ID(录像计划关联的模板ID,从查询录像上云模板列表接口ListRecordBackupTemplates中获取)

  • PlanName:

    录像计划名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,计划名称全局唯一,不能为空,不能重复)

  • Describe:

    录像计划描述(仅支持中文、英文、数字、_、-,长度不超过128个字符)

  • LifeCycle:

    生命周期(录像文件生命周期设置,管理文件冷、热存储的时间)

  • Channels:

    通道及通道所属设备(添加录像的设备的通道信息,一次添加通道总数不超过5000个,包括组织目录下的通道数量)

  • OrganizationId:

    添加组织目录下所有设备通道(Json数组,可以为空,通道总数量不超过5000个(包括Channel字段的数量))



575
576
577
# File 'lib/v20230517/models.rb', line 575

def TemplateId
  @TemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
# File 'lib/v20230517/models.rb', line 586

def deserialize(params)
  @TemplateId = params['TemplateId']
  @PlanName = params['PlanName']
  @Describe = params['Describe']
  unless params['LifeCycle'].nil?
    @LifeCycle = LifeCycleData.new
    @LifeCycle.deserialize(params['LifeCycle'])
  end
  unless params['Channels'].nil?
    @Channels = []
    params['Channels'].each do |i|
      channelinfo_tmp = ChannelInfo.new
      channelinfo_tmp.deserialize(i)
      @Channels << channelinfo_tmp
    end
  end
  @OrganizationId = params['OrganizationId']
end