Class: TencentCloud::Tione::V20211111::ExposeNetworkConfig

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

Overview

暴露网络配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sshconfig = nil, exposeportconfig = nil) ⇒ ExposeNetworkConfig

Returns a new instance of ExposeNetworkConfig.



4359
4360
4361
4362
# File 'lib/v20211111/models.rb', line 4359

def initialize(sshconfig=nil, exposeportconfig=nil)
  @SSHConfig = sshconfig
  @ExposePortConfig = exposeportconfig
end

Instance Attribute Details

#ExposePortConfigObject

Parameters:

  • SSHConfig:

    ssh配置

  • ExposePortConfig:

    容器端口暴露到公网配置



4357
4358
4359
# File 'lib/v20211111/models.rb', line 4357

def ExposePortConfig
  @ExposePortConfig
end

#SSHConfigObject

Parameters:

  • SSHConfig:

    ssh配置

  • ExposePortConfig:

    容器端口暴露到公网配置



4357
4358
4359
# File 'lib/v20211111/models.rb', line 4357

def SSHConfig
  @SSHConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
# File 'lib/v20211111/models.rb', line 4364

def deserialize(params)
  unless params['SSHConfig'].nil?
    @SSHConfig = SSHConfig.new
    @SSHConfig.deserialize(params['SSHConfig'])
  end
  unless params['ExposePortConfig'].nil?
    @ExposePortConfig = ExposePortConfig.new
    @ExposePortConfig.deserialize(params['ExposePortConfig'])
  end
end