Class: Azure::SecurityInsights::Profiles::Latest::Mgmt::SecurityInsightsManagementClass
- Inherits:
-
Object
- Object
- Azure::SecurityInsights::Profiles::Latest::Mgmt::SecurityInsightsManagementClass
- Defined in:
- lib/profiles/latest/modules/securityinsights_profile_module.rb
Overview
SecurityInsightsManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#alert_rule_templates ⇒ Object
readonly
Returns the value of attribute alert_rule_templates.
-
#alert_rules ⇒ Object
readonly
Returns the value of attribute alert_rules.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#bookmarks ⇒ Object
readonly
Returns the value of attribute bookmarks.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#data_connectors ⇒ Object
readonly
Returns the value of attribute data_connectors.
-
#incident_comments ⇒ Object
readonly
Returns the value of attribute incident_comments.
-
#incidents ⇒ Object
readonly
Returns the value of attribute incidents.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ SecurityInsightsManagementClass
constructor
A new instance of SecurityInsightsManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SecurityInsightsManagementClass
Returns a new instance of SecurityInsightsManagementClass.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 108 def initialize( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @client_0 = Azure::SecurityInsights::Mgmt::V2020_01_01::SecurityInsights.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @operations = @client_0.operations @alert_rules = @client_0.alert_rules @actions = @client_0.actions @alert_rule_templates = @client_0.alert_rule_templates @bookmarks = @client_0.bookmarks @data_connectors = @client_0.data_connectors @incidents = @client_0.incidents @incident_comments = @client_0.incident_comments @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
143 144 145 146 147 148 149 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 143 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def actions @actions end |
#alert_rule_templates ⇒ Object (readonly)
Returns the value of attribute alert_rule_templates.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def alert_rule_templates @alert_rule_templates end |
#alert_rules ⇒ Object (readonly)
Returns the value of attribute alert_rules.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def alert_rules @alert_rules end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def base_url @base_url end |
#bookmarks ⇒ Object (readonly)
Returns the value of attribute bookmarks.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def bookmarks @bookmarks end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def configurable @configurable end |
#data_connectors ⇒ Object (readonly)
Returns the value of attribute data_connectors.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def data_connectors @data_connectors end |
#incident_comments ⇒ Object (readonly)
Returns the value of attribute incident_comments.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def incident_comments @incident_comments end |
#incidents ⇒ Object (readonly)
Returns the value of attribute incidents.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def incidents @incidents end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
106 107 108 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 106 def @options end |
Instance Method Details
#add_telemetry(client) ⇒ Object
138 139 140 141 |
# File 'lib/profiles/latest/modules/securityinsights_profile_module.rb', line 138 def add_telemetry(client) profile_information = 'Profiles/Latest/SecurityInsights/Mgmt' client.add_user_agent_information(profile_information) end |