Class: TencentCloud::Apigateway::V20180808::UsagePlanEnvironmentStatus

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

Overview

使用计划绑定环境的列表。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, environmentlist = nil) ⇒ UsagePlanEnvironmentStatus

Returns a new instance of UsagePlanEnvironmentStatus.



9973
9974
9975
9976
# File 'lib/v20180808/models.rb', line 9973

def initialize(totalcount=nil, environmentlist=nil)
  @TotalCount = totalcount
  @EnvironmentList = environmentlist
end

Instance Attribute Details

#EnvironmentListObject

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

Parameters:

  • TotalCount:

    使用计划绑定的服务的环境数。

  • EnvironmentList:

    使用计划已经绑定的各个服务的环境状态。



9971
9972
9973
# File 'lib/v20180808/models.rb', line 9971

def EnvironmentList
  @EnvironmentList
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    使用计划绑定的服务的环境数。

  • EnvironmentList:

    使用计划已经绑定的各个服务的环境状态。



9971
9972
9973
# File 'lib/v20180808/models.rb', line 9971

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
# File 'lib/v20180808/models.rb', line 9978

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['EnvironmentList'].nil?
    @EnvironmentList = []
    params['EnvironmentList'].each do |i|
      usageplanenvironment_tmp = UsagePlanEnvironment.new
      usageplanenvironment_tmp.deserialize(i)
      @EnvironmentList << usageplanenvironment_tmp
    end
  end
end