Class: TencentCloud::Tke::V20180525::UpdateEKSContainerInstanceRequest

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

Overview

UpdateEKSContainerInstance请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eksciid = nil, restartpolicy = nil, ekscivolume = nil, containers = nil, initcontainers = nil, name = nil, imageregistrycredentials = nil) ⇒ UpdateEKSContainerInstanceRequest

Returns a new instance of UpdateEKSContainerInstanceRequest.



19042
19043
19044
19045
19046
19047
19048
19049
19050
# File 'lib/v20180525/models.rb', line 19042

def initialize(eksciid=nil, restartpolicy=nil, ekscivolume=nil, containers=nil, initcontainers=nil, name=nil, imageregistrycredentials=nil)
  @EksCiId = eksciid
  @RestartPolicy = restartpolicy
  @EksCiVolume = ekscivolume
  @Containers = containers
  @InitContainers = initcontainers
  @Name = name
  @ImageRegistryCredentials = imageregistrycredentials
end

Instance Attribute Details

#ContainersObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def Containers
  @Containers
end

#EksCiIdObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def EksCiId
  @EksCiId
end

#EksCiVolumeObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def EksCiVolume
  @EksCiVolume
end

#ImageRegistryCredentialsObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def ImageRegistryCredentials
  @ImageRegistryCredentials
end

#InitContainersObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def InitContainers
  @InitContainers
end

#NameObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def Name
  @Name
end

#RestartPolicyObject

Parameters:

  • EksCiId:

    容器实例 ID

  • RestartPolicy:

    实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)

  • EksCiVolume:

    数据卷,包含NfsVolume数组和CbsVolume数组

  • Containers:

    容器组

  • InitContainers:

    Init 容器组

  • Name:

    容器实例名称

  • ImageRegistryCredentials:

    镜像仓库凭证数组



19040
19041
19042
# File 'lib/v20180525/models.rb', line 19040

def RestartPolicy
  @RestartPolicy
end

Instance Method Details

#deserialize(params) ⇒ Object



19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
# File 'lib/v20180525/models.rb', line 19052

def deserialize(params)
  @EksCiId = params['EksCiId']
  @RestartPolicy = params['RestartPolicy']
  unless params['EksCiVolume'].nil?
    @EksCiVolume = EksCiVolume.new
    @EksCiVolume.deserialize(params['EksCiVolume'])
  end
  unless params['Containers'].nil?
    @Containers = []
    params['Containers'].each do |i|
      container_tmp = Container.new
      container_tmp.deserialize(i)
      @Containers << container_tmp
    end
  end
  unless params['InitContainers'].nil?
    @InitContainers = []
    params['InitContainers'].each do |i|
      container_tmp = Container.new
      container_tmp.deserialize(i)
      @InitContainers << container_tmp
    end
  end
  @Name = params['Name']
  unless params['ImageRegistryCredentials'].nil?
    @ImageRegistryCredentials = []
    params['ImageRegistryCredentials'].each do |i|
      imageregistrycredential_tmp = ImageRegistryCredential.new
      imageregistrycredential_tmp.deserialize(i)
      @ImageRegistryCredentials << imageregistrycredential_tmp
    end
  end
end