Class: Azure::StreamAnalytics::Profiles::Latest::Mgmt::StreamAnalyticsManagementClass

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

Overview

StreamAnalyticsManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ StreamAnalyticsManagementClass

Returns a new instance of StreamAnalyticsManagementClass.



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 98

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::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.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
  @streaming_jobs = @client_0.streaming_jobs
  @inputs = @client_0.inputs
  @outputs = @client_0.outputs
  @transformations = @client_0.transformations
  @functions = @client_0.functions
  @subscriptions = @client_0.subscriptions

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



132
133
134
135
136
137
138
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 132

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

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def configurable
  @configurable
end

#functionsObject (readonly)

Returns the value of attribute functions.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def functions
  @functions
end

#inputsObject (readonly)

Returns the value of attribute inputs.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def inputs
  @inputs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def options
  @options
end

#outputsObject (readonly)

Returns the value of attribute outputs.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def outputs
  @outputs
end

#streaming_jobsObject (readonly)

Returns the value of attribute streaming_jobs.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def streaming_jobs
  @streaming_jobs
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def subscriptions
  @subscriptions
end

#transformationsObject (readonly)

Returns the value of attribute transformations.



96
97
98
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 96

def transformations
  @transformations
end

Instance Method Details

#add_telemetry(client) ⇒ Object



127
128
129
130
# File 'lib/profiles/latest/modules/streamanalytics_profile_module.rb', line 127

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