Class: TencentCloud::Scf::V20180416::InstanceConcurrencyConfig

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

Overview

多并发执行配置描述

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dynamicenabled = nil, maxconcurrency = nil, instanceisolationenabled = nil, type = nil, mixnodeconfig = nil, sessionconfig = nil) ⇒ InstanceConcurrencyConfig

Returns a new instance of InstanceConcurrencyConfig.



2665
2666
2667
2668
2669
2670
2671
2672
# File 'lib/v20180416/models.rb', line 2665

def initialize(dynamicenabled=nil, maxconcurrency=nil, instanceisolationenabled=nil, type=nil, mixnodeconfig=nil, sessionconfig=nil)
  @DynamicEnabled = dynamicenabled
  @MaxConcurrency = maxconcurrency
  @InstanceIsolationEnabled = instanceisolationenabled
  @Type = type
  @MixNodeConfig = mixnodeconfig
  @SessionConfig = sessionconfig
end

Instance Attribute Details

#DynamicEnabled ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def DynamicEnabled
  @DynamicEnabled
end

#InstanceIsolationEnabled ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def InstanceIsolationEnabled
  @InstanceIsolationEnabled
end

#MaxConcurrency ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def MaxConcurrency
  @MaxConcurrency
end

#MixNodeConfig ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def MixNodeConfig
  @MixNodeConfig
end

#SessionConfig ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def SessionConfig
  @SessionConfig
end

#Type ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DynamicEnabled: —

    是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。

  • MaxConcurrency: —

    单实例并发数最大值。取值范围 [1,100]

  • InstanceIsolationEnabled: —

    安全隔离开关

  • Type: —

    基于会话:Session-Based , 或者基于请求:Request-Based,二选一

  • MixNodeConfig: —

    动态并发参数

  • SessionConfig: —

    会话配置参数



2663
2664
2665
# File 'lib/v20180416/models.rb', line 2663

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
# File 'lib/v20180416/models.rb', line 2674

def deserialize(params)
  @DynamicEnabled = params['DynamicEnabled']
  @MaxConcurrency = params['MaxConcurrency']
  @InstanceIsolationEnabled = params['InstanceIsolationEnabled']
  @Type = params['Type']
  unless params['MixNodeConfig'].nil?
    @MixNodeConfig = []
    params['MixNodeConfig'].each do |i|
      mixnodeconfig_tmp = MixNodeConfig.new
      mixnodeconfig_tmp.deserialize(i)
      @MixNodeConfig << mixnodeconfig_tmp
    end
  end
  unless params['SessionConfig'].nil?
    @SessionConfig = SessionConfig.new
    @SessionConfig.deserialize(params['SessionConfig'])
  end
end