Class: Azure::DataMigration::Profiles::Latest::Mgmt::DataMigrationManagementClass
- Inherits:
-
Object
- Object
- Azure::DataMigration::Profiles::Latest::Mgmt::DataMigrationManagementClass
- Defined in:
- lib/profiles/latest/modules/datamigration_profile_module.rb
Overview
DataMigrationManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#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.
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
-
#resource_skus ⇒ Object
readonly
Returns the value of attribute resource_skus.
-
#service_tasks ⇒ Object
readonly
Returns the value of attribute service_tasks.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#tasks ⇒ Object
readonly
Returns the value of attribute tasks.
-
#usages ⇒ Object
readonly
Returns the value of attribute usages.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ DataMigrationManagementClass
constructor
A new instance of DataMigrationManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DataMigrationManagementClass
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 329 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::DataMigration::Mgmt::V2018_07_15_preview::DataMigrationServiceClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @resource_skus = @client_0.resource_skus @services = @client_0.services @tasks = @client_0.tasks @service_tasks = @client_0.service_tasks @projects = @client_0.projects @usages = @client_0.usages @operations = @client_0.operations @files = @client_0.files @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
364 365 366 367 368 369 370 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 364 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def configurable @configurable end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def files @files end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def end |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def projects @projects end |
#resource_skus ⇒ Object (readonly)
Returns the value of attribute resource_skus.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def resource_skus @resource_skus end |
#service_tasks ⇒ Object (readonly)
Returns the value of attribute service_tasks.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def service_tasks @service_tasks end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def services @services end |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def tasks @tasks end |
#usages ⇒ Object (readonly)
Returns the value of attribute usages.
327 328 329 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 327 def usages @usages end |
Instance Method Details
#add_telemetry(client) ⇒ Object
359 360 361 362 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 359 def add_telemetry(client) profile_information = 'Profiles/Latest/DataMigration/Mgmt' client.add_user_agent_information(profile_information) end |