Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Recovery Services Backup Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .recovery_services_backup_client import RecoveryServicesBackupClient
from .version import VERSION
from ._configuration import RecoveryServicesBackupClientConfiguration
from ._recovery_services_backup_client import RecoveryServicesBackupClient
__all__ = ['RecoveryServicesBackupClient', 'RecoveryServicesBackupClientConfiguration']

__all__ = ['RecoveryServicesBackupClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class RecoveryServicesBackupClientConfiguration(AzureConfiguration):
"""Configuration for RecoveryServicesBackupClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription Id.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(RecoveryServicesBackupClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-recoveryservicesbackup/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,79 +11,47 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.protection_intent_operations import ProtectionIntentOperations
from .operations.backup_status_operations import BackupStatusOperations
from .operations.feature_support_operations import FeatureSupportOperations
from .operations.backup_jobs_operations import BackupJobsOperations
from .operations.job_details_operations import JobDetailsOperations
from .operations.export_jobs_operation_results_operations import ExportJobsOperationResultsOperations
from .operations.jobs_operations import JobsOperations
from .operations.backup_policies_operations import BackupPoliciesOperations
from .operations.backup_protected_items_operations import BackupProtectedItemsOperations
from .operations.backup_protection_intent_operations import BackupProtectionIntentOperations
from .operations.backup_usage_summaries_operations import BackupUsageSummariesOperations
from .operations.operation_operations import OperationOperations
from .operations.backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations
from .operations.backup_engines_operations import BackupEnginesOperations
from .operations.protection_container_refresh_operation_results_operations import ProtectionContainerRefreshOperationResultsOperations
from .operations.protectable_containers_operations import ProtectableContainersOperations
from .operations.protection_containers_operations import ProtectionContainersOperations
from .operations.backup_workload_items_operations import BackupWorkloadItemsOperations
from .operations.protection_container_operation_results_operations import ProtectionContainerOperationResultsOperations
from .operations.protected_items_operations import ProtectedItemsOperations
from .operations.backups_operations import BackupsOperations
from .operations.protected_item_operation_results_operations import ProtectedItemOperationResultsOperations
from .operations.protected_item_operation_statuses_operations import ProtectedItemOperationStatusesOperations
from .operations.recovery_points_operations import RecoveryPointsOperations
from .operations.item_level_recovery_connections_operations import ItemLevelRecoveryConnectionsOperations
from .operations.restores_operations import RestoresOperations
from .operations.job_cancellations_operations import JobCancellationsOperations
from .operations.job_operation_results_operations import JobOperationResultsOperations
from .operations.backup_operation_results_operations import BackupOperationResultsOperations
from .operations.backup_operation_statuses_operations import BackupOperationStatusesOperations
from .operations.protection_policies_operations import ProtectionPoliciesOperations
from .operations.protection_policy_operation_results_operations import ProtectionPolicyOperationResultsOperations
from .operations.protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations
from .operations.backup_protectable_items_operations import BackupProtectableItemsOperations
from .operations.backup_protection_containers_operations import BackupProtectionContainersOperations
from .operations.security_pi_ns_operations import SecurityPINsOperations
from .operations.backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations
from .operations.operations import Operations
from . import models


class RecoveryServicesBackupClientConfiguration(AzureConfiguration):
"""Configuration for RecoveryServicesBackupClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription Id.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(RecoveryServicesBackupClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-recoveryservicesbackup/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import RecoveryServicesBackupClientConfiguration
from .operations import ProtectionIntentOperations
from .operations import BackupStatusOperations
from .operations import FeatureSupportOperations
from .operations import BackupJobsOperations
from .operations import JobDetailsOperations
from .operations import ExportJobsOperationResultsOperations
from .operations import JobsOperations
from .operations import BackupPoliciesOperations
from .operations import BackupProtectedItemsOperations
from .operations import BackupProtectionIntentOperations
from .operations import BackupUsageSummariesOperations
from .operations import OperationOperations
from .operations import BackupResourceVaultConfigsOperations
from .operations import BackupEnginesOperations
from .operations import ProtectionContainerRefreshOperationResultsOperations
from .operations import ProtectableContainersOperations
from .operations import ProtectionContainersOperations
from .operations import BackupWorkloadItemsOperations
from .operations import ProtectionContainerOperationResultsOperations
from .operations import ProtectedItemsOperations
from .operations import BackupsOperations
from .operations import ProtectedItemOperationResultsOperations
from .operations import ProtectedItemOperationStatusesOperations
from .operations import RecoveryPointsOperations
from .operations import ItemLevelRecoveryConnectionsOperations
from .operations import RestoresOperations
from .operations import JobCancellationsOperations
from .operations import JobOperationResultsOperations
from .operations import BackupOperationResultsOperations
from .operations import BackupOperationStatusesOperations
from .operations import ProtectionPoliciesOperations
from .operations import ProtectionPolicyOperationResultsOperations
from .operations import ProtectionPolicyOperationStatusesOperations
from .operations import BackupProtectableItemsOperations
from .operations import BackupProtectionContainersOperations
from .operations import SecurityPINsOperations
from .operations import BackupResourceStorageConfigsOperations
from .operations import Operations
from . import models


class RecoveryServicesBackupClient(SDKClient):
Expand Down
Loading