class Azure::Profiles::Latest::RecoveryServicesBackup::Mgmt::RecoveryServicesBackupManagementClass

Attributes

backup_engines[R]
backup_jobs[R]
backup_operation_results[R]
backup_operation_statuses[R]
backup_policies[R]
backup_protectable_items[R]
backup_protected_items[R]
backup_protection_containers[R]
backup_resource_storage_configs[R]
backup_resource_vault_configs[R]
backup_status[R]
backup_usage_summaries[R]
backup_workload_items[R]
backups[R]
base_url[R]
configurable[R]
export_jobs_operation_results[R]
feature_support[R]
item_level_recovery_connections[R]
job_cancellations[R]
job_details[R]
job_operation_results[R]
jobs[R]
model_classes[R]
operation[R]
operations[R]
options[R]
private_endpoint_connection_operations[R]
protectable_containers[R]
protected_item_operation_results[R]
protected_item_operation_statuses[R]
protected_items[R]
protection_container_operation_results[R]
protection_container_refresh_operation_results[R]
protection_containers[R]
protection_intent_operations[R]
protection_policies[R]
protection_policy_operation_results[R]
protection_policy_operation_statuses[R]
recovery_points[R]
restores[R]
security_pins[R]

Public Class Methods

new(configurable, base_url=nil, options=nil) click to toggle source
# File lib/latest/modules/recoveryservicesbackup_profile_module.rb, line 350
def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.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

  @client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
  if(@client_1.respond_to?(:subscription_id))
    @client_1.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_1)
  @backup_engines = @client_1.backup_engines
  @protection_container_refresh_operation_results = @client_1.protection_container_refresh_operation_results
  @protectable_containers = @client_1.protectable_containers
  @protection_containers = @client_1.protection_containers
  @backup_workload_items = @client_1.backup_workload_items
  @protection_container_operation_results = @client_1.protection_container_operation_results
  @backups = @client_1.backups
  @protected_item_operation_statuses = @client_1.protected_item_operation_statuses
  @item_level_recovery_connections = @client_1.item_level_recovery_connections
  @backup_operation_results = @client_1.backup_operation_results
  @backup_operation_statuses = @client_1.backup_operation_statuses
  @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses
  @backup_protectable_items = @client_1.backup_protectable_items
  @backup_protection_containers = @client_1.backup_protection_containers
  @security_pins = @client_1.security_pins
  @backup_resource_storage_configs = @client_1.backup_resource_storage_configs

  @client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
  if(@client_2.respond_to?(:subscription_id))
    @client_2.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_2)
  @protection_intent_operations = @client_2.protection_intent_operations
  @backup_status = @client_2.backup_status
  @feature_support = @client_2.feature_support
  @backup_usage_summaries = @client_2.backup_usage_summaries

  @client_3 = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
  if(@client_3.respond_to?(:subscription_id))
    @client_3.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_3)

  @client_4 = Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
  if(@client_4.respond_to?(:subscription_id))
    @client_4.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_4)
  @backup_resource_vault_configs = @client_4.backup_resource_vault_configs
  @protected_items = @client_4.protected_items
  @protected_item_operation_results = @client_4.protected_item_operation_results
  @recovery_points = @client_4.recovery_points
  @restores = @client_4.restores
  @backup_policies = @client_4.backup_policies
  @protection_policies = @client_4.protection_policies
  @protection_policy_operation_results = @client_4.protection_policy_operation_results
  @backup_jobs = @client_4.backup_jobs
  @job_details = @client_4.job_details
  @job_cancellations = @client_4.job_cancellations
  @job_operation_results = @client_4.job_operation_results
  @export_jobs_operation_results = @client_4.export_jobs_operation_results
  @jobs = @client_4.jobs
  @backup_protected_items = @client_4.backup_protected_items
  @operation = @client_4.operation

  @client_5 = Azure::RecoveryServicesBackup::Mgmt::V2020_02_02::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
  if(@client_5.respond_to?(:subscription_id))
    @client_5.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_5)
  @private_endpoint_connection_operations = @client_5.private_endpoint_connection_operations

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/latest/modules/recoveryservicesbackup_profile_module.rb, line 430
def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/RecoveryServicesBackup/Mgmt"
  client.add_user_agent_information(profile_information)
end
method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/latest/modules/recoveryservicesbackup_profile_module.rb, line 435
def method_missing(method, *args)
  if @client_5.respond_to?method
    @client_5.send(method, *args)
  elsif @client_4.respond_to?method
    @client_4.send(method, *args)
  elsif @client_3.respond_to?method
    @client_3.send(method, *args)
  elsif @client_2.respond_to?method
    @client_2.send(method, *args)
  elsif @client_1.respond_to?method
    @client_1.send(method, *args)
  elsif @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end