Class: TencentCloud::Tke::V20180525::DescribePrometheusTemplateSyncResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusTemplateSyncResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusTemplateSync返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targets = nil, requestid = nil) ⇒ DescribePrometheusTemplateSyncResponse
constructor
A new instance of DescribePrometheusTemplateSyncResponse.
Constructor Details
#initialize(targets = nil, requestid = nil) ⇒ DescribePrometheusTemplateSyncResponse
Returns a new instance of DescribePrometheusTemplateSyncResponse.
9593 9594 9595 9596 |
# File 'lib/v20180525/models.rb', line 9593 def initialize(targets=nil, requestid=nil) @Targets = targets @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9591 9592 9593 |
# File 'lib/v20180525/models.rb', line 9591 def RequestId @RequestId end |
#Targets ⇒ Object
9591 9592 9593 |
# File 'lib/v20180525/models.rb', line 9591 def Targets @Targets end |
Instance Method Details
#deserialize(params) ⇒ Object
9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 |
# File 'lib/v20180525/models.rb', line 9598 def deserialize(params) unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new prometheustemplatesynctarget_tmp.deserialize(i) @Targets << prometheustemplatesynctarget_tmp end end @RequestId = params['RequestId'] end |