Class: Azure::Profiles::Latest::OperationalInsights::Mgmt::OperationalInsightsManagementClass
- Inherits:
-
Object
- Object
- Azure::Profiles::Latest::OperationalInsights::Mgmt::OperationalInsightsManagementClass
- Defined in:
- lib/latest/modules/operationalinsights_profile_module.rb
Defined Under Namespace
Classes: ModelClasses
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(configurable, base_url = nil, options = nil) ⇒ OperationalInsightsManagementClass
constructor
A new instance of OperationalInsightsManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(configurable, base_url = nil, options = nil) ⇒ OperationalInsightsManagementClass
Returns a new instance of OperationalInsightsManagementClass.
115 116 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 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 115 def initialize(configurable, base_url=nil, =nil) @configurable, @base_url, @options = configurable, base_url, @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
159 160 161 162 163 164 165 166 167 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 159 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.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def available_service_tiers @available_service_tiers end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def base_url @base_url end |
#clusters ⇒ Object (readonly)
Returns the value of attribute clusters.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def clusters @clusters end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def configurable @configurable end |
#data_exports ⇒ Object (readonly)
Returns the value of attribute data_exports.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def data_exports @data_exports end |
#data_sources ⇒ Object (readonly)
Returns the value of attribute data_sources.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def data_sources @data_sources end |
#deleted_workspaces ⇒ Object (readonly)
Returns the value of attribute deleted_workspaces.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def deleted_workspaces @deleted_workspaces end |
#gateways ⇒ Object (readonly)
Returns the value of attribute gateways.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def gateways @gateways end |
#intelligence_packs ⇒ Object (readonly)
Returns the value of attribute intelligence_packs.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def intelligence_packs @intelligence_packs end |
#linked_services ⇒ Object (readonly)
Returns the value of attribute linked_services.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def linked_services @linked_services end |
#linked_storage_accounts ⇒ Object (readonly)
Returns the value of attribute linked_storage_accounts.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def linked_storage_accounts @linked_storage_accounts end |
#management_groups ⇒ Object (readonly)
Returns the value of attribute management_groups.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def management_groups @management_groups end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def model_classes @model_classes end |
#operation_statuses ⇒ Object (readonly)
Returns the value of attribute operation_statuses.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def operation_statuses @operation_statuses end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def @options end |
#saved_searches ⇒ Object (readonly)
Returns the value of attribute saved_searches.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def saved_searches @saved_searches end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def schema @schema end |
#shared_keys_operations ⇒ Object (readonly)
Returns the value of attribute shared_keys_operations.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def shared_keys_operations @shared_keys_operations end |
#storage_insight_configs ⇒ Object (readonly)
Returns the value of attribute storage_insight_configs.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def storage_insight_configs @storage_insight_configs end |
#storage_insights ⇒ Object (readonly)
Returns the value of attribute storage_insights.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def storage_insights @storage_insights end |
#tables ⇒ Object (readonly)
Returns the value of attribute tables.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def tables @tables end |
#usages ⇒ Object (readonly)
Returns the value of attribute usages.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def usages @usages end |
#workspace_purge ⇒ Object (readonly)
Returns the value of attribute workspace_purge.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def workspace_purge @workspace_purge end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
113 114 115 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113 def workspaces @workspaces end |
Instance Method Details
#add_telemetry(client) ⇒ Object
154 155 156 157 |
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 154 def add_telemetry(client) profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/OperationalInsights/Mgmt" client.add_user_agent_information(profile_information) end |