Class: Azure::OperationalInsights::Profiles::Latest::Mgmt::OperationalInsightsManagementClass
- Inherits:
-
Object
- Object
- Azure::OperationalInsights::Profiles::Latest::Mgmt::OperationalInsightsManagementClass
- Defined in:
- lib/profiles/latest/modules/operationalinsights_profile_module.rb
Overview
OperationalInsightsManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#available_service_tiers ⇒ Object
readonly
Returns the value of attribute available_service_tiers.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#clusters ⇒ Object
readonly
Returns the value of attribute clusters.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#data_exports ⇒ Object
readonly
Returns the value of attribute data_exports.
-
#data_sources ⇒ Object
readonly
Returns the value of attribute data_sources.
-
#deleted_workspaces ⇒ Object
readonly
Returns the value of attribute deleted_workspaces.
-
#gateways ⇒ Object
readonly
Returns the value of attribute gateways.
-
#intelligence_packs ⇒ Object
readonly
Returns the value of attribute intelligence_packs.
-
#linked_services ⇒ Object
readonly
Returns the value of attribute linked_services.
-
#linked_storage_accounts ⇒ Object
readonly
Returns the value of attribute linked_storage_accounts.
-
#management_groups ⇒ Object
readonly
Returns the value of attribute management_groups.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operation_statuses ⇒ Object
readonly
Returns the value of attribute operation_statuses.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#saved_searches ⇒ Object
readonly
Returns the value of attribute saved_searches.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#shared_keys_operations ⇒ Object
readonly
Returns the value of attribute shared_keys_operations.
-
#storage_insight_configs ⇒ Object
readonly
Returns the value of attribute storage_insight_configs.
-
#storage_insights ⇒ Object
readonly
Returns the value of attribute storage_insights.
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
-
#usages ⇒ Object
readonly
Returns the value of attribute usages.
-
#workspace_purge ⇒ Object
readonly
Returns the value of attribute workspace_purge.
-
#workspaces ⇒ Object
readonly
Returns the value of attribute workspaces.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ OperationalInsightsManagementClass
constructor
A new instance of OperationalInsightsManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ OperationalInsightsManagementClass
Returns a new instance of OperationalInsightsManagementClass.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 117 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::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @storage_insights = @client_0.storage_insights @client_1 = Azure::OperationalInsights::Mgmt::V2020_08_01::OperationalInsightsManagementClient.new(configurable.credentials, base_url, ) if(@client_1.respond_to?(:subscription_id)) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) @data_exports = @client_1.data_exports @data_sources = @client_1.data_sources @intelligence_packs = @client_1.intelligence_packs @linked_services = @client_1.linked_services @linked_storage_accounts = @client_1.linked_storage_accounts @management_groups = @client_1.management_groups @operations = @client_1.operations @operation_statuses = @client_1.operation_statuses @shared_keys_operations = @client_1.shared_keys_operations @usages = @client_1.usages @workspaces = @client_1.workspaces @deleted_workspaces = @client_1.deleted_workspaces @clusters = @client_1.clusters @storage_insight_configs = @client_1.storage_insight_configs @saved_searches = @client_1.saved_searches @available_service_tiers = @client_1.available_service_tiers @gateways = @client_1.gateways @schema = @client_1.schema @workspace_purge = @client_1.workspace_purge @tables = @client_1.tables @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
171 172 173 174 175 176 177 178 179 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 171 def method_missing(method, *args) if @client_1.respond_to?method @client_1.send(method, *args) elsif @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#available_service_tiers ⇒ Object (readonly)
Returns the value of attribute available_service_tiers.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def available_service_tiers @available_service_tiers end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def base_url @base_url end |
#clusters ⇒ Object (readonly)
Returns the value of attribute clusters.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def clusters @clusters end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def configurable @configurable end |
#data_exports ⇒ Object (readonly)
Returns the value of attribute data_exports.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def data_exports @data_exports end |
#data_sources ⇒ Object (readonly)
Returns the value of attribute data_sources.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def data_sources @data_sources end |
#deleted_workspaces ⇒ Object (readonly)
Returns the value of attribute deleted_workspaces.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def deleted_workspaces @deleted_workspaces end |
#gateways ⇒ Object (readonly)
Returns the value of attribute gateways.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def gateways @gateways end |
#intelligence_packs ⇒ Object (readonly)
Returns the value of attribute intelligence_packs.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def intelligence_packs @intelligence_packs end |
#linked_services ⇒ Object (readonly)
Returns the value of attribute linked_services.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def linked_services @linked_services end |
#linked_storage_accounts ⇒ Object (readonly)
Returns the value of attribute linked_storage_accounts.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def linked_storage_accounts @linked_storage_accounts end |
#management_groups ⇒ Object (readonly)
Returns the value of attribute management_groups.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def management_groups @management_groups end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def model_classes @model_classes end |
#operation_statuses ⇒ Object (readonly)
Returns the value of attribute operation_statuses.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def operation_statuses @operation_statuses end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def @options end |
#saved_searches ⇒ Object (readonly)
Returns the value of attribute saved_searches.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def saved_searches @saved_searches end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def schema @schema end |
#shared_keys_operations ⇒ Object (readonly)
Returns the value of attribute shared_keys_operations.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def shared_keys_operations @shared_keys_operations end |
#storage_insight_configs ⇒ Object (readonly)
Returns the value of attribute storage_insight_configs.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def storage_insight_configs @storage_insight_configs end |
#storage_insights ⇒ Object (readonly)
Returns the value of attribute storage_insights.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def storage_insights @storage_insights end |
#tables ⇒ Object (readonly)
Returns the value of attribute tables.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def tables @tables end |
#usages ⇒ Object (readonly)
Returns the value of attribute usages.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def usages @usages end |
#workspace_purge ⇒ Object (readonly)
Returns the value of attribute workspace_purge.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def workspace_purge @workspace_purge end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
115 116 117 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115 def workspaces @workspaces end |
Instance Method Details
#add_telemetry(client) ⇒ Object
166 167 168 169 |
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 166 def add_telemetry(client) profile_information = 'Profiles/Latest/OperationalInsights/Mgmt' client.add_user_agent_information(profile_information) end |