Class: Azure::TimeSeriesInsights::Profiles::Latest::Mgmt::TimeSeriesInsightsManagementClass

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

Overview

TimeSeriesInsightsManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ TimeSeriesInsightsManagementClass

Returns a new instance of TimeSeriesInsightsManagementClass.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 87

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::TimeSeriesInsights::Mgmt::V2018_08_15_preview::TimeSeriesInsightsClient.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)
  @operations = @client_0.operations
  @environments = @client_0.environments
  @event_sources = @client_0.event_sources
  @reference_data_sets = @client_0.reference_data_sets
  @access_policies = @client_0.access_policies

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



119
120
121
122
123
124
125
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 119

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#access_policiesObject (readonly)

Returns the value of attribute access_policies.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def access_policies
  @access_policies
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def configurable
  @configurable
end

#environmentsObject (readonly)

Returns the value of attribute environments.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def environments
  @environments
end

#event_sourcesObject (readonly)

Returns the value of attribute event_sources.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def event_sources
  @event_sources
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def options
  @options
end

#reference_data_setsObject (readonly)

Returns the value of attribute reference_data_sets.



85
86
87
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85

def reference_data_sets
  @reference_data_sets
end

Instance Method Details

#add_telemetry(client) ⇒ Object



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

def add_telemetry(client)
  profile_information = 'Profiles/Latest/TimeSeriesInsights/Mgmt'
  client.add_user_agent_information(profile_information)
end