Class: Azure::Profiles::Latest::LuisAuthoring::LuisAuthoringDataClass

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

Direct Known Subclasses

Client::LuisAuthoringAdapter

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ LuisAuthoringDataClass

Returns a new instance of LuisAuthoringDataClass.



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 136

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::LuisAuthoringClient.new(configurable.credentials, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @features = @client_0.features
  @examples = @client_0.examples
  @model = @client_0.model
  @apps = @client_0.apps
  @versions = @client_0.versions
  @train = @client_0.train
  @permissions = @client_0.permissions
  @pattern = @client_0.pattern
  @settings = @client_0.settings
  @azure_accounts = @client_0.azure_accounts

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



163
164
165
166
167
168
169
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 163

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

Instance Attribute Details

#appsObject (readonly)

Returns the value of attribute apps.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def apps
  @apps
end

#azure_accountsObject (readonly)

Returns the value of attribute azure_accounts.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def azure_accounts
  @azure_accounts
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def configurable
  @configurable
end

#examplesObject (readonly)

Returns the value of attribute examples.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def examples
  @examples
end

#featuresObject (readonly)

Returns the value of attribute features.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def features
  @features
end

#modelObject (readonly)

Returns the value of attribute model.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def model
  @model
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def model_classes
  @model_classes
end

#optionsObject (readonly)

Returns the value of attribute options.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def options
  @options
end

#patternObject (readonly)

Returns the value of attribute pattern.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def pattern
  @pattern
end

#permissionsObject (readonly)

Returns the value of attribute permissions.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def permissions
  @permissions
end

#settingsObject (readonly)

Returns the value of attribute settings.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def settings
  @settings
end

#trainObject (readonly)

Returns the value of attribute train.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def train
  @train
end

#versionsObject (readonly)

Returns the value of attribute versions.



134
135
136
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 134

def versions
  @versions
end

Instance Method Details

#add_telemetry(client) ⇒ Object



158
159
160
161
# File 'lib/latest/modules/luisauthoring_profile_module.rb', line 158

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/LuisAuthoring"
  client.add_user_agent_information(profile_information)
end