Class: TencentCloud::Tke::V20180525::EnableVpcCniNetworkTypeRequest

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

Overview

EnableVpcCniNetworkType请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, vpccnitype = nil, enablestaticip = nil, subnets = nil, expiredseconds = nil, skipaddingnonmasqueradecidrs = nil) ⇒ EnableVpcCniNetworkTypeRequest

Returns a new instance of EnableVpcCniNetworkTypeRequest.



12805
12806
12807
12808
12809
12810
12811
12812
# File 'lib/v20180525/models.rb', line 12805

def initialize(clusterid=nil, vpccnitype=nil, enablestaticip=nil, subnets=nil, expiredseconds=nil, skipaddingnonmasqueradecidrs=nil)
  @ClusterId = clusterid
  @VpcCniType = vpccnitype
  @EnableStaticIp = enablestaticip
  @Subnets = subnets
  @ExpiredSeconds = expiredseconds
  @SkipAddingNonMasqueradeCIDRs = skipaddingnonmasqueradecidrs
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def ClusterId
  @ClusterId
end

#EnableStaticIpObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def EnableStaticIp
  @EnableStaticIp
end

#ExpiredSecondsObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def ExpiredSeconds
  @ExpiredSeconds
end

#SkipAddingNonMasqueradeCIDRsObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def SkipAddingNonMasqueradeCIDRs
  @SkipAddingNonMasqueradeCIDRs
end

#SubnetsObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def Subnets
  @Subnets
end

#VpcCniTypeObject

Parameters:

  • ClusterId:

    集群ID

  • VpcCniType:

    开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式

  • EnableStaticIp:

    是否开启固定IP模式

  • Subnets:

    使用的容器子网

  • ExpiredSeconds:

    在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。

  • SkipAddingNonMasqueradeCIDRs:

    是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加



12803
12804
12805
# File 'lib/v20180525/models.rb', line 12803

def VpcCniType
  @VpcCniType
end

Instance Method Details

#deserialize(params) ⇒ Object



12814
12815
12816
12817
12818
12819
12820
12821
# File 'lib/v20180525/models.rb', line 12814

def deserialize(params)
  @ClusterId = params['ClusterId']
  @VpcCniType = params['VpcCniType']
  @EnableStaticIp = params['EnableStaticIp']
  @Subnets = params['Subnets']
  @ExpiredSeconds = params['ExpiredSeconds']
  @SkipAddingNonMasqueradeCIDRs = params['SkipAddingNonMasqueradeCIDRs']
end