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
Returns a new instance of DataMigrationManagementClass.
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 338 def initialize( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[: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
373 374 375 376 377 378 379 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 373 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.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def configurable @configurable end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def files @files end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def @options end |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def projects @projects end |
#resource_skus ⇒ Object (readonly)
Returns the value of attribute resource_skus.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def resource_skus @resource_skus end |
#service_tasks ⇒ Object (readonly)
Returns the value of attribute service_tasks.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def service_tasks @service_tasks end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def services @services end |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def tasks @tasks end |
#usages ⇒ Object (readonly)
Returns the value of attribute usages.
336 337 338 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 336 def usages @usages end |
Instance Method Details
#add_telemetry(client) ⇒ Object
368 369 370 371 |
# File 'lib/profiles/latest/modules/datamigration_profile_module.rb', line 368 def add_telemetry(client) profile_information = 'Profiles/Latest/DataMigration/Mgmt' client.add_user_agent_information(profile_information) end |