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.



11319
11320
11321
11322
11323
# File 'lib/v20180606/models.rb', line 11319

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



11317
11318
11319
# File 'lib/v20180606/models.rb', line 11317

def RemoteAuthenticationRules
  @RemoteAuthenticationRules
end

#ServerObject

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

Parameters:

  • Switch:

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

  • RemoteAuthenticationRules:

    远程鉴权规则配置

  • Server:

    远程鉴权Server



11317
11318
11319
# File 'lib/v20180606/models.rb', line 11317

def Server
  @Server
end

#SwitchObject

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

Parameters:

  • Switch:

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

  • RemoteAuthenticationRules:

    远程鉴权规则配置

  • Server:

    远程鉴权Server



11317
11318
11319
# File 'lib/v20180606/models.rb', line 11317

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
# File 'lib/v20180606/models.rb', line 11325

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