Class: Azure::OperationalInsights::Profiles::Latest::Mgmt::OperationalInsightsManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/operationalinsights_profile_module.rb

Overview

OperationalInsightsManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options)
  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, options)
  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_tiersObject (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_urlObject (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

#clustersObject (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

#configurableObject (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_exportsObject (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_sourcesObject (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_workspacesObject (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

#gatewaysObject (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_packsObject (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_servicesObject (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_accountsObject (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_groupsObject (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_classesObject (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_statusesObject (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

#operationsObject (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

#optionsObject (readonly)

Returns the value of attribute options.



115
116
117
# File 'lib/profiles/latest/modules/operationalinsights_profile_module.rb', line 115

def options
  @options
end

#saved_searchesObject (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

#schemaObject (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_operationsObject (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_configsObject (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_insightsObject (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

#tablesObject (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

#usagesObject (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_purgeObject (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

#workspacesObject (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