Class: TencentCloud::Apigateway::V20180808::ServiceEnvironmentStrategy

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

Overview

服务环境策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environmentname = nil, url = nil, status = nil, versionname = nil, strategy = nil, maxstrategy = nil) ⇒ ServiceEnvironmentStrategy

Returns a new instance of ServiceEnvironmentStrategy.



8769
8770
8771
8772
8773
8774
8775
8776
# File 'lib/v20180808/models.rb', line 8769

def initialize(environmentname=nil, url=nil, status=nil, versionname=nil, strategy=nil, maxstrategy=nil)
  @EnvironmentName = environmentname
  @Url = url
  @Status = status
  @VersionName = versionname
  @Strategy = strategy
  @MaxStrategy = maxstrategy
end

Instance Attribute Details

#EnvironmentNameObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def EnvironmentName
  @EnvironmentName
end

#MaxStrategyObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def MaxStrategy
  @MaxStrategy
end

#StatusObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def Status
  @Status
end

#StrategyObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def Strategy
  @Strategy
end

#UrlObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def Url
  @Url
end

#VersionNameObject

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

Parameters:

  • EnvironmentName:

    环境名。

  • Url:

    访问服务对应环境的url。

  • Status:

    发布状态。

  • VersionName:

    发布的版本号。

  • Strategy:

    限流值。

  • MaxStrategy:

    最大限流值



8767
8768
8769
# File 'lib/v20180808/models.rb', line 8767

def VersionName
  @VersionName
end

Instance Method Details

#deserialize(params) ⇒ Object



8778
8779
8780
8781
8782
8783
8784
8785
# File 'lib/v20180808/models.rb', line 8778

def deserialize(params)
  @EnvironmentName = params['EnvironmentName']
  @Url = params['Url']
  @Status = params['Status']
  @VersionName = params['VersionName']
  @Strategy = params['Strategy']
  @MaxStrategy = params['MaxStrategy']
end