Class: Azure::Profiles::Latest::RecoveryServicesSiteRecovery::Mgmt::RecoveryServicesSiteRecoveryManagementClass

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RecoveryServicesSiteRecoveryManagementClass.



382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 382

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

  @client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::SiteRecoveryManagementClient.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
  @replication_alert_settings = @client_0.replication_alert_settings
  @replication_events = @client_0.replication_events
  @replication_fabrics = @client_0.replication_fabrics
  @replication_logical_networks = @client_0.replication_logical_networks
  @replication_networks = @client_0.replication_networks
  @replication_network_mappings = @client_0.replication_network_mappings
  @replication_protection_containers = @client_0.replication_protection_containers
  @replication_protectable_items = @client_0.replication_protectable_items
  @replication_protected_items = @client_0.replication_protected_items
  @recovery_points = @client_0.recovery_points
  @target_compute_sizes = @client_0.target_compute_sizes
  @replication_protection_container_mappings = @client_0.replication_protection_container_mappings
  @replication_recovery_services_providers = @client_0.replication_recovery_services_providers
  @replication_storage_classifications = @client_0.replication_storage_classifications
  @replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings
  @replicationv_centers = @client_0.replicationv_centers
  @replication_jobs = @client_0.replication_jobs
  @replication_policies = @client_0.replication_policies
  @replication_recovery_plans = @client_0.replication_recovery_plans
  @replication_vault_health = @client_0.replication_vault_health

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



420
421
422
423
424
425
426
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 420

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.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def options
  @options
end

#recovery_pointsObject (readonly)

Returns the value of attribute recovery_points.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def recovery_points
  @recovery_points
end

#replication_alert_settingsObject (readonly)

Returns the value of attribute replication_alert_settings.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_alert_settings
  @replication_alert_settings
end

#replication_eventsObject (readonly)

Returns the value of attribute replication_events.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_events
  @replication_events
end

#replication_fabricsObject (readonly)

Returns the value of attribute replication_fabrics.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_fabrics
  @replication_fabrics
end

#replication_jobsObject (readonly)

Returns the value of attribute replication_jobs.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_jobs
  @replication_jobs
end

#replication_logical_networksObject (readonly)

Returns the value of attribute replication_logical_networks.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_logical_networks
  @replication_logical_networks
end

#replication_network_mappingsObject (readonly)

Returns the value of attribute replication_network_mappings.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_network_mappings
  @replication_network_mappings
end

#replication_networksObject (readonly)

Returns the value of attribute replication_networks.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_networks
  @replication_networks
end

#replication_policiesObject (readonly)

Returns the value of attribute replication_policies.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_policies
  @replication_policies
end

#replication_protectable_itemsObject (readonly)

Returns the value of attribute replication_protectable_items.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_protectable_items
  @replication_protectable_items
end

#replication_protected_itemsObject (readonly)

Returns the value of attribute replication_protected_items.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_protected_items
  @replication_protected_items
end

#replication_protection_container_mappingsObject (readonly)

Returns the value of attribute replication_protection_container_mappings.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_protection_container_mappings
  @replication_protection_container_mappings
end

#replication_protection_containersObject (readonly)

Returns the value of attribute replication_protection_containers.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_protection_containers
  @replication_protection_containers
end

#replication_recovery_plansObject (readonly)

Returns the value of attribute replication_recovery_plans.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_recovery_plans
  @replication_recovery_plans
end

#replication_recovery_services_providersObject (readonly)

Returns the value of attribute replication_recovery_services_providers.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_recovery_services_providers
  @replication_recovery_services_providers
end

#replication_storage_classification_mappingsObject (readonly)

Returns the value of attribute replication_storage_classification_mappings.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_storage_classification_mappings
  @replication_storage_classification_mappings
end

#replication_storage_classificationsObject (readonly)

Returns the value of attribute replication_storage_classifications.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_storage_classifications
  @replication_storage_classifications
end

#replication_vault_healthObject (readonly)

Returns the value of attribute replication_vault_health.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replication_vault_health
  @replication_vault_health
end

#replicationv_centersObject (readonly)

Returns the value of attribute replicationv_centers.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def replicationv_centers
  @replicationv_centers
end

#target_compute_sizesObject (readonly)

Returns the value of attribute target_compute_sizes.



380
381
382
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 380

def target_compute_sizes
  @target_compute_sizes
end

Instance Method Details

#add_telemetry(client) ⇒ Object



415
416
417
418
# File 'lib/latest/modules/recoveryservicessiterecovery_profile_module.rb', line 415

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