Class: TencentCloud::Tke::V20180525::ImageRegistryCredential

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

Overview

从镜像仓库拉取镜像的凭据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server = nil, username = nil, password = nil, name = nil) ⇒ ImageRegistryCredential

Returns a new instance of ImageRegistryCredential.



12607
12608
12609
12610
12611
12612
# File 'lib/v20180525/models.rb', line 12607

def initialize(server=nil, username=nil, password=nil, name=nil)
  @Server = server
  @Username = username
  @Password = password
  @Name = name
end

Instance Attribute Details

#NameObject

Parameters:

  • Server:

    镜像仓库地址

  • Username:

    用户名

  • Password:

    密码

  • Name:

    ImageRegistryCredential的名字



12605
12606
12607
# File 'lib/v20180525/models.rb', line 12605

def Name
  @Name
end

#PasswordObject

Parameters:

  • Server:

    镜像仓库地址

  • Username:

    用户名

  • Password:

    密码

  • Name:

    ImageRegistryCredential的名字



12605
12606
12607
# File 'lib/v20180525/models.rb', line 12605

def Password
  @Password
end

#ServerObject

Parameters:

  • Server:

    镜像仓库地址

  • Username:

    用户名

  • Password:

    密码

  • Name:

    ImageRegistryCredential的名字



12605
12606
12607
# File 'lib/v20180525/models.rb', line 12605

def Server
  @Server
end

#UsernameObject

Parameters:

  • Server:

    镜像仓库地址

  • Username:

    用户名

  • Password:

    密码

  • Name:

    ImageRegistryCredential的名字



12605
12606
12607
# File 'lib/v20180525/models.rb', line 12605

def Username
  @Username
end

Instance Method Details

#deserialize(params) ⇒ Object



12614
12615
12616
12617
12618
12619
# File 'lib/v20180525/models.rb', line 12614

def deserialize(params)
  @Server = params['Server']
  @Username = params['Username']
  @Password = params['Password']
  @Name = params['Name']
end