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

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



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_tiersObject (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_urlObject (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

#clustersObject (readonly)

Returns the value of attribute clusters.



113
114
115
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113

def clusters
  @clusters
end

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

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

#operationsObject (readonly)

Returns the value of attribute operations.



113
114
115
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



113
114
115
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113

def options
  @options
end

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

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

#tablesObject (readonly)

Returns the value of attribute tables.



113
114
115
# File 'lib/latest/modules/operationalinsights_profile_module.rb', line 113

def tables
  @tables
end

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

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