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.



11626
11627
11628
11629
11630
11631
11632
11633
# File 'lib/v20180525/models.rb', line 11626

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

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 会同步添加



11624
11625
11626
# File 'lib/v20180525/models.rb', line 11624

def VpcCniType
  @VpcCniType
end

Instance Method Details

#deserialize(params) ⇒ Object



11635
11636
11637
11638
11639
11640
11641
11642
# File 'lib/v20180525/models.rb', line 11635

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