Module: XClarityClient::Mixins::CompliancePolicyMixin

Included in:
Client
Defined in:
lib/xclarity_client/mixins/compliance_policy_mixin.rb

Overview

Exposes CompliancePolicyManagement features

Instance Method Summary collapse

Instance Method Details

#assign_compliance_policy(opts = {}, keep = nil, auto_assign = nil) ⇒ Object



26
27
28
29
30
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 26

def assign_compliance_policy(opts = {}, keep = nil, auto_assign = nil)
  CompliancePolicyManagement.new(@config).assign_compliance_policy(
    opts, keep, auto_assign
  )
end

#delete_compliance_policy(policy_name, remove_package = nil) ⇒ Object



32
33
34
35
36
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 32

def delete_compliance_policy(policy_name, remove_package = nil)
  CompliancePolicyManagement.new(@config).delete_compliance_policy(
    policy_name, remove_package
  )
end

#discover_application_firmwareObject



10
11
12
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 10

def discover_application_firmware
  CompliancePolicyManagement.new(@config).get_applicable_firmware
end

#discover_compare_results(opts = {}) ⇒ Object



20
21
22
23
24
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 20

def discover_compare_results(opts = {})
  CompliancePolicyManagement.new(@config).get_compare_results(
    opts
  )
end

#discover_persisted_compare_results(opts = {}) ⇒ Object



14
15
16
17
18
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 14

def discover_persisted_compare_results(opts = {})
  CompliancePolicyManagement.new(@config).get_persisted_compare_results(
    opts
  )
end

#discover_update_policy(opts = {}) ⇒ Object



6
7
8
# File 'lib/xclarity_client/mixins/compliance_policy_mixin.rb', line 6

def discover_update_policy(opts = {})
  CompliancePolicyManagement.new(@config).fetch_all(opts)
end