Class: TencentCloud::Keewidb::V20220308::DescribeProjectSecurityGroupsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220308/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.



1338
1339
1340
1341
1342
# File 'lib/v20220308/models.rb', line 1338

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。



1336
1337
1338
# File 'lib/v20220308/models.rb', line 1336

def Groups
  @Groups
end

#RequestIdObject

Parameters:

  • Groups:

    安全组规则。

  • Total:

    符合条件的安全组总数量。

  • RequestId:

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



1336
1337
1338
# File 'lib/v20220308/models.rb', line 1336

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Groups:

    安全组规则。

  • Total:

    符合条件的安全组总数量。

  • RequestId:

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



1336
1337
1338
# File 'lib/v20220308/models.rb', line 1336

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
# File 'lib/v20220308/models.rb', line 1344

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