Class: TencentCloud::Cdn::V20180606::RemoteAuthentication

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

Overview

远程鉴权规则配置,可以包含多种规则配置。RemoteAuthenticationRules和Server 互斥,只需要配置其中一个。若只配置Server ,RemoteAuthenticationRules中详细规则参数将采用默认参数;默认参数值见各个配置项中说明;

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, remoteauthenticationrules = nil, server = nil) ⇒ RemoteAuthentication

Returns a new instance of RemoteAuthentication.



8775
8776
8777
8778
8779
# File 'lib/v20180606/models.rb', line 8775

def initialize(switch=nil, remoteauthenticationrules=nil, server=nil)
  @Switch = switch
  @RemoteAuthenticationRules = remoteauthenticationrules
  @Server = server
end

Instance Attribute Details

#RemoteAuthenticationRulesObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    远程鉴权配置开关,取值有:

  • RemoteAuthenticationRules:

    远程鉴权规则配置

  • Server:

    远程鉴权Server



8773
8774
8775
# File 'lib/v20180606/models.rb', line 8773

def RemoteAuthenticationRules
  @RemoteAuthenticationRules
end

#ServerObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    远程鉴权配置开关,取值有:

  • RemoteAuthenticationRules:

    远程鉴权规则配置

  • Server:

    远程鉴权Server



8773
8774
8775
# File 'lib/v20180606/models.rb', line 8773

def Server
  @Server
end

#SwitchObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    远程鉴权配置开关,取值有:

  • RemoteAuthenticationRules:

    远程鉴权规则配置

  • Server:

    远程鉴权Server



8773
8774
8775
# File 'lib/v20180606/models.rb', line 8773

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
# File 'lib/v20180606/models.rb', line 8781

def deserialize(params)
  @Switch = params['Switch']
  unless params['RemoteAuthenticationRules'].nil?
    @RemoteAuthenticationRules = []
    params['RemoteAuthenticationRules'].each do |i|
      remoteauthenticationrule_tmp = RemoteAuthenticationRule.new
      remoteauthenticationrule_tmp.deserialize(i)
      @RemoteAuthenticationRules << remoteauthenticationrule_tmp
    end
  end
  @Server = params['Server']
end