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.



8365
8366
8367
8368
8369
# File 'lib/v20180606/models.rb', line 8365

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:

    密钥,字段为脱敏返回。



8363
8364
8365
# File 'lib/v20180606/models.rb', line 8363

def AccessKey
  @AccessKey
end

#SecretKeyObject

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

Parameters:

  • Switch:

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

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥,字段为脱敏返回。



8363
8364
8365
# File 'lib/v20180606/models.rb', line 8363

def SecretKey
  @SecretKey
end

#SwitchObject

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

Parameters:

  • Switch:

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

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥,字段为脱敏返回。



8363
8364
8365
# File 'lib/v20180606/models.rb', line 8363

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



8371
8372
8373
8374
8375
# File 'lib/v20180606/models.rb', line 8371

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