Class: Azure::RecoveryServicesBackup::Profiles::Latest::Mgmt::RecoveryServicesBackupManagementClass
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Profiles::Latest::Mgmt::RecoveryServicesBackupManagementClass
- Defined in:
- lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb
Overview
RecoveryServicesBackupManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#backup_engines ⇒ Object
readonly
Returns the value of attribute backup_engines.
-
#backup_jobs ⇒ Object
readonly
Returns the value of attribute backup_jobs.
-
#backup_operation_results ⇒ Object
readonly
Returns the value of attribute backup_operation_results.
-
#backup_operation_statuses ⇒ Object
readonly
Returns the value of attribute backup_operation_statuses.
-
#backup_policies ⇒ Object
readonly
Returns the value of attribute backup_policies.
-
#backup_protectable_items ⇒ Object
readonly
Returns the value of attribute backup_protectable_items.
-
#backup_protected_items ⇒ Object
readonly
Returns the value of attribute backup_protected_items.
-
#backup_protection_containers ⇒ Object
readonly
Returns the value of attribute backup_protection_containers.
-
#backup_resource_storage_configs ⇒ Object
readonly
Returns the value of attribute backup_resource_storage_configs.
-
#backup_resource_vault_configs ⇒ Object
readonly
Returns the value of attribute backup_resource_vault_configs.
-
#backup_status ⇒ Object
readonly
Returns the value of attribute backup_status.
-
#backup_usage_summaries ⇒ Object
readonly
Returns the value of attribute backup_usage_summaries.
-
#backup_workload_items ⇒ Object
readonly
Returns the value of attribute backup_workload_items.
-
#backups ⇒ Object
readonly
Returns the value of attribute backups.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#export_jobs_operation_results ⇒ Object
readonly
Returns the value of attribute export_jobs_operation_results.
-
#feature_support ⇒ Object
readonly
Returns the value of attribute feature_support.
-
#item_level_recovery_connections ⇒ Object
readonly
Returns the value of attribute item_level_recovery_connections.
-
#job_cancellations ⇒ Object
readonly
Returns the value of attribute job_cancellations.
-
#job_details ⇒ Object
readonly
Returns the value of attribute job_details.
-
#job_operation_results ⇒ Object
readonly
Returns the value of attribute job_operation_results.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#private_endpoint_connection_operations ⇒ Object
readonly
Returns the value of attribute private_endpoint_connection_operations.
-
#protectable_containers ⇒ Object
readonly
Returns the value of attribute protectable_containers.
-
#protected_item_operation_results ⇒ Object
readonly
Returns the value of attribute protected_item_operation_results.
-
#protected_item_operation_statuses ⇒ Object
readonly
Returns the value of attribute protected_item_operation_statuses.
-
#protected_items ⇒ Object
readonly
Returns the value of attribute protected_items.
-
#protection_container_operation_results ⇒ Object
readonly
Returns the value of attribute protection_container_operation_results.
-
#protection_container_refresh_operation_results ⇒ Object
readonly
Returns the value of attribute protection_container_refresh_operation_results.
-
#protection_containers ⇒ Object
readonly
Returns the value of attribute protection_containers.
-
#protection_intent_operations ⇒ Object
readonly
Returns the value of attribute protection_intent_operations.
-
#protection_policies ⇒ Object
readonly
Returns the value of attribute protection_policies.
-
#protection_policy_operation_results ⇒ Object
readonly
Returns the value of attribute protection_policy_operation_results.
-
#protection_policy_operation_statuses ⇒ Object
readonly
Returns the value of attribute protection_policy_operation_statuses.
-
#recovery_points ⇒ Object
readonly
Returns the value of attribute recovery_points.
-
#restores ⇒ Object
readonly
Returns the value of attribute restores.
-
#security_pins ⇒ Object
readonly
Returns the value of attribute security_pins.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ RecoveryServicesBackupManagementClass
constructor
A new instance of RecoveryServicesBackupManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ RecoveryServicesBackupManagementClass
Returns a new instance of RecoveryServicesBackupManagementClass.
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 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 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 352 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::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, ) 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, ) 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, ) 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, ) 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, ) 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, ) 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 447 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 |
Instance Attribute Details
#backup_engines ⇒ Object (readonly)
Returns the value of attribute backup_engines.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_engines @backup_engines end |
#backup_jobs ⇒ Object (readonly)
Returns the value of attribute backup_jobs.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_jobs @backup_jobs end |
#backup_operation_results ⇒ Object (readonly)
Returns the value of attribute backup_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_operation_results @backup_operation_results end |
#backup_operation_statuses ⇒ Object (readonly)
Returns the value of attribute backup_operation_statuses.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_operation_statuses @backup_operation_statuses end |
#backup_policies ⇒ Object (readonly)
Returns the value of attribute backup_policies.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_policies @backup_policies end |
#backup_protectable_items ⇒ Object (readonly)
Returns the value of attribute backup_protectable_items.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_protectable_items @backup_protectable_items end |
#backup_protected_items ⇒ Object (readonly)
Returns the value of attribute backup_protected_items.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_protected_items @backup_protected_items end |
#backup_protection_containers ⇒ Object (readonly)
Returns the value of attribute backup_protection_containers.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_protection_containers @backup_protection_containers end |
#backup_resource_storage_configs ⇒ Object (readonly)
Returns the value of attribute backup_resource_storage_configs.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_resource_storage_configs @backup_resource_storage_configs end |
#backup_resource_vault_configs ⇒ Object (readonly)
Returns the value of attribute backup_resource_vault_configs.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_resource_vault_configs @backup_resource_vault_configs end |
#backup_status ⇒ Object (readonly)
Returns the value of attribute backup_status.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_status @backup_status end |
#backup_usage_summaries ⇒ Object (readonly)
Returns the value of attribute backup_usage_summaries.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_usage_summaries @backup_usage_summaries end |
#backup_workload_items ⇒ Object (readonly)
Returns the value of attribute backup_workload_items.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backup_workload_items @backup_workload_items end |
#backups ⇒ Object (readonly)
Returns the value of attribute backups.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def backups @backups end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def configurable @configurable end |
#export_jobs_operation_results ⇒ Object (readonly)
Returns the value of attribute export_jobs_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def export_jobs_operation_results @export_jobs_operation_results end |
#feature_support ⇒ Object (readonly)
Returns the value of attribute feature_support.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def feature_support @feature_support end |
#item_level_recovery_connections ⇒ Object (readonly)
Returns the value of attribute item_level_recovery_connections.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def item_level_recovery_connections @item_level_recovery_connections end |
#job_cancellations ⇒ Object (readonly)
Returns the value of attribute job_cancellations.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def job_cancellations @job_cancellations end |
#job_details ⇒ Object (readonly)
Returns the value of attribute job_details.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def job_details @job_details end |
#job_operation_results ⇒ Object (readonly)
Returns the value of attribute job_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def job_operation_results @job_operation_results end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def jobs @jobs end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def model_classes @model_classes end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def operation @operation end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def @options end |
#private_endpoint_connection_operations ⇒ Object (readonly)
Returns the value of attribute private_endpoint_connection_operations.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def private_endpoint_connection_operations @private_endpoint_connection_operations end |
#protectable_containers ⇒ Object (readonly)
Returns the value of attribute protectable_containers.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protectable_containers @protectable_containers end |
#protected_item_operation_results ⇒ Object (readonly)
Returns the value of attribute protected_item_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protected_item_operation_results @protected_item_operation_results end |
#protected_item_operation_statuses ⇒ Object (readonly)
Returns the value of attribute protected_item_operation_statuses.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protected_item_operation_statuses @protected_item_operation_statuses end |
#protected_items ⇒ Object (readonly)
Returns the value of attribute protected_items.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protected_items @protected_items end |
#protection_container_operation_results ⇒ Object (readonly)
Returns the value of attribute protection_container_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_container_operation_results @protection_container_operation_results end |
#protection_container_refresh_operation_results ⇒ Object (readonly)
Returns the value of attribute protection_container_refresh_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_container_refresh_operation_results @protection_container_refresh_operation_results end |
#protection_containers ⇒ Object (readonly)
Returns the value of attribute protection_containers.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_containers @protection_containers end |
#protection_intent_operations ⇒ Object (readonly)
Returns the value of attribute protection_intent_operations.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_intent_operations @protection_intent_operations end |
#protection_policies ⇒ Object (readonly)
Returns the value of attribute protection_policies.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_policies @protection_policies end |
#protection_policy_operation_results ⇒ Object (readonly)
Returns the value of attribute protection_policy_operation_results.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_policy_operation_results @protection_policy_operation_results end |
#protection_policy_operation_statuses ⇒ Object (readonly)
Returns the value of attribute protection_policy_operation_statuses.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def protection_policy_operation_statuses @protection_policy_operation_statuses end |
#recovery_points ⇒ Object (readonly)
Returns the value of attribute recovery_points.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def recovery_points @recovery_points end |
#restores ⇒ Object (readonly)
Returns the value of attribute restores.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def restores @restores end |
#security_pins ⇒ Object (readonly)
Returns the value of attribute security_pins.
350 351 352 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 350 def security_pins @security_pins end |
Instance Method Details
#add_telemetry(client) ⇒ Object
442 443 444 445 |
# File 'lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb', line 442 def add_telemetry(client) profile_information = 'Profiles/Latest/RecoveryServicesBackup/Mgmt' client.add_user_agent_information(profile_information) end |