Class: TencentCloud::Tke::V20180525::UpdateImageCacheRequest

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

Overview

UpdateImageCache请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imagecacheid = nil, imagecachename = nil, imageregistrycredentials = nil, images = nil, imagecachesize = nil, retentiondays = nil, securitygroupids = nil, tags = nil) ⇒ UpdateImageCacheRequest

Returns a new instance of UpdateImageCacheRequest.



21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
# File 'lib/v20180525/models.rb', line 21107

def initialize(imagecacheid=nil, imagecachename=nil, imageregistrycredentials=nil, images=nil, imagecachesize=nil, retentiondays=nil, securitygroupids=nil, tags=nil)
  @ImageCacheId = imagecacheid
  @ImageCacheName = imagecachename
  @ImageRegistryCredentials = imageregistrycredentials
  @Images = images
  @ImageCacheSize = imagecachesize
  @RetentionDays = retentiondays
  @SecurityGroupIds = securitygroupids
  @Tags = tags
end

Instance Attribute Details

#ImageCacheIdObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def ImageCacheId
  @ImageCacheId
end

#ImageCacheNameObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def ImageCacheName
  @ImageCacheName
end

#ImageCacheSizeObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def ImageCacheSize
  @ImageCacheSize
end

#ImageRegistryCredentialsObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def ImageRegistryCredentials
  @ImageRegistryCredentials
end

#ImagesObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def Images
  @Images
end

#RetentionDaysObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def RetentionDays
  @RetentionDays
end

#SecurityGroupIdsObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def SecurityGroupIds
  @SecurityGroupIds
end

#TagsObject

Parameters:

  • 镜像缓存ID

  • 镜像缓存名称

  • 镜像仓库凭证数组

  • 用于制作镜像缓存的容器镜像列表

  • 镜像缓存的大小。默认为20 GiB。取值范围参考云硬盘类型中的高性能云盘类型的大小限制。

  • 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。

  • 安全组Id

  • 腾讯云标签



21105
21106
21107
# File 'lib/v20180525/models.rb', line 21105

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
# File 'lib/v20180525/models.rb', line 21118

def deserialize(params)
  @ImageCacheId = params['ImageCacheId']
  @ImageCacheName = params['ImageCacheName']
  unless params['ImageRegistryCredentials'].nil?
    @ImageRegistryCredentials = []
    params['ImageRegistryCredentials'].each do |i|
      imageregistrycredential_tmp = ImageRegistryCredential.new
      imageregistrycredential_tmp.deserialize(i)
      @ImageRegistryCredentials << imageregistrycredential_tmp
    end
  end
  @Images = params['Images']
  @ImageCacheSize = params['ImageCacheSize']
  @RetentionDays = params['RetentionDays']
  @SecurityGroupIds = params['SecurityGroupIds']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end