Class: Fog::AWS::Support::TrustedAdvisorCheck
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::Support::TrustedAdvisorCheck
- Defined in:
- lib/fog/aws/models/support/trusted_advisor_check.rb
Instance Method Summary collapse
- #category_specific_summary(lazy = true) ⇒ Object
- #flagged_resources(lazy = true) ⇒ Object
- #populate_extended_attributes(lazy = false) ⇒ Object
- #resources_summary(lazy = true) ⇒ Object
Instance Method Details
#category_specific_summary(lazy = true) ⇒ Object
41 42 43 44 |
# File 'lib/fog/aws/models/support/trusted_advisor_check.rb', line 41 def category_specific_summary(lazy=true) populate_extended_attributes(lazy) if attributes[:category_specific_summary].nil? attributes[:category_stecific_summary] end |
#flagged_resources(lazy = true) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fog/aws/models/support/trusted_advisor_check.rb', line 23 def flagged_resources(lazy=true) if attributes[:flagged_resources].nil? populate_extended_attributes(lazy) if attributes[:flagged_resources] map_flagged_resources! service.flagged_resources.load(attributes[:flagged_resources]) else nil end else if attributes[:flagged_resources].first['metadata'].is_a?(Array) map_flagged_resources! end service.flagged_resources.load(attributes[:flagged_resources]) end end |
#populate_extended_attributes(lazy = false) ⇒ Object
17 18 19 20 21 |
# File 'lib/fog/aws/models/support/trusted_advisor_check.rb', line 17 def populate_extended_attributes(lazy=false) return if lazy == true data = service.describe_trusted_advisor_check_result(:id => self.identity).body["result"] merge_attributes(data) end |
#resources_summary(lazy = true) ⇒ Object
46 47 48 49 |
# File 'lib/fog/aws/models/support/trusted_advisor_check.rb', line 46 def resources_summary(lazy=true) populate_extended_attributes(lazy) if attributes[:resources_summary].nil? attributes[:resources_summary] end |