Class: TencentCloud::Cloudaudit::V20190319::ListKeyAliasByRegionResponse

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

Overview

ListKeyAliasByRegion返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, keymetadatas = nil, requestid = nil) ⇒ ListKeyAliasByRegionResponse

Returns a new instance of ListKeyAliasByRegionResponse.



935
936
937
938
939
# File 'lib/v20190319/models.rb', line 935

def initialize(totalcount=nil, keymetadatas=nil, requestid=nil)
  @TotalCount = totalcount
  @KeyMetadatas = keymetadatas
  @RequestId = requestid
end

Instance Attribute Details

#KeyMetadatasObject

Parameters:

  • TotalCount:

    CMK的总数量

  • KeyMetadatas:

    密钥别名

  • RequestId:

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



933
934
935
# File 'lib/v20190319/models.rb', line 933

def KeyMetadatas
  @KeyMetadatas
end

#RequestIdObject

Parameters:

  • TotalCount:

    CMK的总数量

  • KeyMetadatas:

    密钥别名

  • RequestId:

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



933
934
935
# File 'lib/v20190319/models.rb', line 933

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    CMK的总数量

  • KeyMetadatas:

    密钥别名

  • RequestId:

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



933
934
935
# File 'lib/v20190319/models.rb', line 933

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



941
942
943
944
945
946
947
948
949
950
951
952
# File 'lib/v20190319/models.rb', line 941

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['KeyMetadatas'].nil?
    @KeyMetadatas = []
    params['KeyMetadatas'].each do |i|
       = KeyMetadata.new
      .deserialize(i)
      @KeyMetadatas << 
    end
  end
  @RequestId = params['RequestId']
end