Class: TencentCloud::Dcdb::V20180411::DescribeProjectSecurityGroupsResponse

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

Overview

DescribeProjectSecurityGroups返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(groups = nil, total = nil, requestid = nil) ⇒ DescribeProjectSecurityGroupsResponse

Returns a new instance of DescribeProjectSecurityGroupsResponse.



4095
4096
4097
4098
4099
# File 'lib/v20180411/models.rb', line 4095

def initialize(groups=nil, total=nil, requestid=nil)
  @Groups = groups
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#GroupsObject

Parameters:

  • Groups:

    安全组详情。

  • Total:

    安全组个数。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4093
4094
4095
# File 'lib/v20180411/models.rb', line 4093

def Groups
  @Groups
end

#RequestIdObject

Parameters:

  • Groups:

    安全组详情。

  • Total:

    安全组个数。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4093
4094
4095
# File 'lib/v20180411/models.rb', line 4093

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Groups:

    安全组详情。

  • Total:

    安全组个数。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4093
4094
4095
# File 'lib/v20180411/models.rb', line 4093

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/v20180411/models.rb', line 4101

def deserialize(params)
  unless params['Groups'].nil?
    @Groups = []
    params['Groups'].each do |i|
      securitygroup_tmp = SecurityGroup.new
      securitygroup_tmp.deserialize(i)
      @Groups << securitygroup_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end