Class: TencentCloud::Cdn::V20180606::ShareCname

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

Overview

ShareCname配置 ShareCname 为内测功能,如需使用,请联系腾讯云工程师开白.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, cname = nil) ⇒ ShareCname

Returns a new instance of ShareCname.



12783
12784
12785
12786
# File 'lib/v20180606/models.rb', line 12783

def initialize(switch=nil, cname=nil)
  @Switch = switch
  @Cname = cname
end

Instance Attribute Details

#CnameObject

on:开启,使用共享CNAME off:关闭,使用默认CNAME 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    ShareCname 配置开关, 取值有:

  • Cname:

    设置共享CNAME.



12781
12782
12783
# File 'lib/v20180606/models.rb', line 12781

def Cname
  @Cname
end

#SwitchObject

on:开启,使用共享CNAME off:关闭,使用默认CNAME 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    ShareCname 配置开关, 取值有:

  • Cname:

    设置共享CNAME.



12781
12782
12783
# File 'lib/v20180606/models.rb', line 12781

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



12788
12789
12790
12791
# File 'lib/v20180606/models.rb', line 12788

def deserialize(params)
  @Switch = params['Switch']
  @Cname = params['Cname']
end