Module: XClarityClient::Mixins::ConfigPatternMixin
- Included in:
- Client
- Defined in:
- lib/xclarity_client/mixins/config_pattern_mixin.rb
Overview
Exposes ConfigPatternManagement features
Instance Method Summary collapse
- #deploy_config_pattern(id = '', endpoints = nil, restart = '', etype = '') ⇒ Object
- #discover_config_pattern ⇒ Object
- #export_config_pattern(id = '') ⇒ Object
- #fetch_config_pattern(ids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
- #import_config_pattern(config_pattern = {}) ⇒ Object
Instance Method Details
#deploy_config_pattern(id = '', endpoints = nil, restart = '', etype = '') ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/xclarity_client/mixins/config_pattern_mixin.rb', line 24 def deploy_config_pattern(id = '', endpoints = nil, restart = '', etype = '') ConfigPatternManagement.new(@config).deploy_config_pattern( id, endpoints, restart, etype ) end |
#discover_config_pattern ⇒ Object
16 17 18 |
# File 'lib/xclarity_client/mixins/config_pattern_mixin.rb', line 16 def discover_config_pattern ConfigPatternManagement.new(@config).fetch_all end |
#export_config_pattern(id = '') ⇒ Object
20 21 22 |
# File 'lib/xclarity_client/mixins/config_pattern_mixin.rb', line 20 def export_config_pattern(id = '') ConfigPatternManagement.new(@config).export(id) end |
#fetch_config_pattern(ids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/xclarity_client/mixins/config_pattern_mixin.rb', line 6 def fetch_config_pattern(ids = nil, include_attributes = nil, exclude_attributes = nil) ConfigPatternManagement.new(@config).get_object_with_id( ids, include_attributes, exclude_attributes ) end |
#import_config_pattern(config_pattern = {}) ⇒ Object
36 37 38 |
# File 'lib/xclarity_client/mixins/config_pattern_mixin.rb', line 36 def import_config_pattern(config_pattern = {}) ConfigPatternManagement.new(@config).import_config_pattern(config_pattern) end |