Class: TencentCloud::Ams::V20200608::StorageInfo

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

Overview

数据存储信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, url = nil, bucketinfo = nil) ⇒ StorageInfo

Returns a new instance of StorageInfo.



1348
1349
1350
1351
1352
# File 'lib/v20200608/models.rb', line 1348

def initialize(type=nil, url=nil, bucketinfo=nil)
  @Type = type
  @Url = url
  @BucketInfo = bucketinfo
end

Instance Attribute Details

#BucketInfoObject

URL 资源链接类型 COS 腾讯云对象存储类型

Parameters:

  • Type:

    类型 可选:

  • Url:

    资源链接

  • BucketInfo:

    腾讯云存储桶信息



1346
1347
1348
# File 'lib/v20200608/models.rb', line 1346

def BucketInfo
  @BucketInfo
end

#TypeObject

URL 资源链接类型 COS 腾讯云对象存储类型

Parameters:

  • Type:

    类型 可选:

  • Url:

    资源链接

  • BucketInfo:

    腾讯云存储桶信息



1346
1347
1348
# File 'lib/v20200608/models.rb', line 1346

def Type
  @Type
end

#UrlObject

URL 资源链接类型 COS 腾讯云对象存储类型

Parameters:

  • Type:

    类型 可选:

  • Url:

    资源链接

  • BucketInfo:

    腾讯云存储桶信息



1346
1347
1348
# File 'lib/v20200608/models.rb', line 1346

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



1354
1355
1356
1357
1358
1359
1360
1361
# File 'lib/v20200608/models.rb', line 1354

def deserialize(params)
  @Type = params['Type']
  @Url = params['Url']
  unless params['BucketInfo'].nil?
    @BucketInfo = BucketInfo.new
    @BucketInfo.deserialize(params['BucketInfo'])
  end
end