Class: TencentCloud::Cdn::V20180606::QnPrivateAccess

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

Overview

七牛元对象存储回源鉴权配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, accesskey = nil, secretkey = nil) ⇒ QnPrivateAccess

Returns a new instance of QnPrivateAccess.



11039
11040
11041
11042
11043
# File 'lib/v20180606/models.rb', line 11039

def initialize(switch=nil, accesskey=nil, secretkey=nil)
  @Switch = switch
  @AccessKey = accesskey
  @SecretKey = secretkey
end

Instance Attribute Details

#AccessKeyObject

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

Parameters:

  • Switch:

    七牛元对象存储回源鉴权配置开关,取值有:

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥



11037
11038
11039
# File 'lib/v20180606/models.rb', line 11037

def AccessKey
  @AccessKey
end

#SecretKeyObject

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

Parameters:

  • Switch:

    七牛元对象存储回源鉴权配置开关,取值有:

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥



11037
11038
11039
# File 'lib/v20180606/models.rb', line 11037

def SecretKey
  @SecretKey
end

#SwitchObject

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

Parameters:

  • Switch:

    七牛元对象存储回源鉴权配置开关,取值有:

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥



11037
11038
11039
# File 'lib/v20180606/models.rb', line 11037

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



11045
11046
11047
11048
11049
# File 'lib/v20180606/models.rb', line 11045

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