Class: TencentCloud::Vod::V20240718::CreateIncrementalMigrationStrategyRequest

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

Overview

CreateIncrementalMigrationStrategy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subappid = nil, bucketid = nil, strategyname = nil, origintype = nil, httporiginconfig = nil) ⇒ CreateIncrementalMigrationStrategyRequest

Returns a new instance of CreateIncrementalMigrationStrategyRequest.



36
37
38
39
40
41
42
# File 'lib/v20240718/models.rb', line 36

def initialize(subappid=nil, bucketid=nil, strategyname=nil, origintype=nil, httporiginconfig=nil)
  @SubAppId = subappid
  @BucketId = bucketid
  @StrategyName = strategyname
  @OriginType = origintype
  @HttpOriginConfig = httporiginconfig
end

Instance Attribute Details

#BucketIdObject

<li>HTTP:HTTP 源。</li>

Parameters:

  • SubAppId: (b)

    点播(/document/product/266/115396)(/document/product/266/14574) ID。</b>

  • BucketId:

    策略生效的存储桶 ID。

  • StrategyName:

    增量迁移策略名称,名称长度不超过100个字符,允许的字符为:‘中文、英文、0-9、_、-`。

  • OriginType:

    源站类型。取值有:

  • HttpOriginConfig:

    增量迁移 HTTP 回源源站配置,当 OriginType 取值 ‘HTTP` 时必填。



34
35
36
# File 'lib/v20240718/models.rb', line 34

def BucketId
  @BucketId
end

#HttpOriginConfigObject

<li>HTTP:HTTP 源。</li>

Parameters:

  • SubAppId: (b)

    点播(/document/product/266/115396)(/document/product/266/14574) ID。</b>

  • BucketId:

    策略生效的存储桶 ID。

  • StrategyName:

    增量迁移策略名称,名称长度不超过100个字符,允许的字符为:‘中文、英文、0-9、_、-`。

  • OriginType:

    源站类型。取值有:

  • HttpOriginConfig:

    增量迁移 HTTP 回源源站配置,当 OriginType 取值 ‘HTTP` 时必填。



34
35
36
# File 'lib/v20240718/models.rb', line 34

def HttpOriginConfig
  @HttpOriginConfig
end

#OriginTypeObject

<li>HTTP:HTTP 源。</li>

Parameters:

  • SubAppId: (b)

    点播(/document/product/266/115396)(/document/product/266/14574) ID。</b>

  • BucketId:

    策略生效的存储桶 ID。

  • StrategyName:

    增量迁移策略名称,名称长度不超过100个字符,允许的字符为:‘中文、英文、0-9、_、-`。

  • OriginType:

    源站类型。取值有:

  • HttpOriginConfig:

    增量迁移 HTTP 回源源站配置,当 OriginType 取值 ‘HTTP` 时必填。



34
35
36
# File 'lib/v20240718/models.rb', line 34

def OriginType
  @OriginType
end

#StrategyNameObject

<li>HTTP:HTTP 源。</li>

Parameters:

  • SubAppId: (b)

    点播(/document/product/266/115396)(/document/product/266/14574) ID。</b>

  • BucketId:

    策略生效的存储桶 ID。

  • StrategyName:

    增量迁移策略名称,名称长度不超过100个字符,允许的字符为:‘中文、英文、0-9、_、-`。

  • OriginType:

    源站类型。取值有:

  • HttpOriginConfig:

    增量迁移 HTTP 回源源站配置,当 OriginType 取值 ‘HTTP` 时必填。



34
35
36
# File 'lib/v20240718/models.rb', line 34

def StrategyName
  @StrategyName
end

#SubAppIdObject

<li>HTTP:HTTP 源。</li>

Parameters:

  • SubAppId: (b)

    点播(/document/product/266/115396)(/document/product/266/14574) ID。</b>

  • BucketId:

    策略生效的存储桶 ID。

  • StrategyName:

    增量迁移策略名称,名称长度不超过100个字符,允许的字符为:‘中文、英文、0-9、_、-`。

  • OriginType:

    源站类型。取值有:

  • HttpOriginConfig:

    增量迁移 HTTP 回源源站配置,当 OriginType 取值 ‘HTTP` 时必填。



34
35
36
# File 'lib/v20240718/models.rb', line 34

def SubAppId
  @SubAppId
end

Instance Method Details

#deserialize(params) ⇒ Object



44
45
46
47
48
49
50
51
52
53
# File 'lib/v20240718/models.rb', line 44

def deserialize(params)
  @SubAppId = params['SubAppId']
  @BucketId = params['BucketId']
  @StrategyName = params['StrategyName']
  @OriginType = params['OriginType']
  unless params['HttpOriginConfig'].nil?
    @HttpOriginConfig = IncrementalMigrationHttpOriginConfig.new
    @HttpOriginConfig.deserialize(params['HttpOriginConfig'])
  end
end