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.



11020
11021
11022
11023
11024
# File 'lib/v20180606/models.rb', line 11020

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:

    密钥,字段为脱敏返回。



11018
11019
11020
# File 'lib/v20180606/models.rb', line 11018

def AccessKey
  @AccessKey
end

#SecretKeyObject

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

Parameters:

  • Switch:

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

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥,字段为脱敏返回。



11018
11019
11020
# File 'lib/v20180606/models.rb', line 11018

def SecretKey
  @SecretKey
end

#SwitchObject

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

Parameters:

  • Switch:

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

  • AccessKey:

    访问 ID

  • SecretKey:

    密钥,字段为脱敏返回。



11018
11019
11020
# File 'lib/v20180606/models.rb', line 11018

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



11026
11027
11028
11029
11030
# File 'lib/v20180606/models.rb', line 11026

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