Class: Azure::TimeSeriesInsights::Profiles::Latest::Mgmt::TimeSeriesInsightsManagementClass
- Inherits:
-
Object
- Object
- Azure::TimeSeriesInsights::Profiles::Latest::Mgmt::TimeSeriesInsightsManagementClass
- Defined in:
- lib/profiles/latest/modules/timeseriesinsights_profile_module.rb
Overview
TimeSeriesInsightsManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_policies ⇒ Object
readonly
Returns the value of attribute access_policies.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#environments ⇒ Object
readonly
Returns the value of attribute environments.
-
#event_sources ⇒ Object
readonly
Returns the value of attribute event_sources.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#reference_data_sets ⇒ Object
readonly
Returns the value of attribute reference_data_sets.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ TimeSeriesInsightsManagementClass
constructor
A new instance of TimeSeriesInsightsManagementClass.
- #method_missing(method, *args) ⇒ Object
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( = {}) if .is_a?(Hash) && .length == 0 = else = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:options[:base_url] = [:options].nil? ? nil:options[:options] @client_0 = Azure::TimeSeriesInsights::Mgmt::V2018_08_15_preview::TimeSeriesInsightsClient.new(configurable.credentials, base_url, ) 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_policies ⇒ Object (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_url ⇒ Object (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 |
#configurable ⇒ Object (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 |
#environments ⇒ Object (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_sources ⇒ Object (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_classes ⇒ Object (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 |
#operations ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
85 86 87 |
# File 'lib/profiles/latest/modules/timeseriesinsights_profile_module.rb', line 85 def end |
#reference_data_sets ⇒ Object (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 |