class Azure::Migrate::Profiles::Latest::Mgmt::MigrateManagementClass

MigrateManagementClass

Attributes

assessed_machines[R]
assessment_options[R]
assessments[R]
base_url[R]
configurable[R]
groups[R]
location[R]
machines[R]
model_classes[R]
operations[R]
options[R]
projects[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/profiles/latest/modules/migrate_profile_module.rb, line 72
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::Migrate::Mgmt::V2018_02_02::AzureMigrate.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)
  @location = @client_0.location
  @assessment_options = @client_0.assessment_options
  @projects = @client_0.projects
  @machines = @client_0.machines
  @groups = @client_0.groups
  @assessments = @client_0.assessments
  @assessed_machines = @client_0.assessed_machines
  @operations = @client_0.operations

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/profiles/latest/modules/migrate_profile_module.rb, line 102
def add_telemetry(client)
  profile_information = 'Profiles/Latest/Migrate/Mgmt'
  client.add_user_agent_information(profile_information)
end
method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/profiles/latest/modules/migrate_profile_module.rb, line 107
def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end