Skip to content

Commit

Permalink
CodeGen from PR 15037 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 887c6e6e69f362f3a1d6905ae4df91e36024bd4d into 91ac145
  • Loading branch information
SDKAuto committed Jun 30, 2021
1 parent a60d5d1 commit a7c92ba
Show file tree
Hide file tree
Showing 97 changed files with 545 additions and 1,015 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "8c7aca7f1b778ff6ba937b2e79d08fc851a6f80f",
"commit": "b855cb35d33fe824c4e85cd159ec9b987f80cebd",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "",
"total_api_version_list": ["2016-08-10", "2017-07-01", "2018-12-20", "2021-01-01"],
"total_api_version_list": ["2018-12-20", "2021-04-01"],
"client": {
"name": "RecoveryServicesBackupClient",
"filename": "_recovery_services_backup_client",
Expand Down Expand Up @@ -98,6 +98,12 @@
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"protection_intent": "ProtectionIntentOperations",
"backup_status": "BackupStatusOperations",
"feature_support": "FeatureSupportOperations",
"backup_protection_intent": "BackupProtectionIntentOperations",
"backup_usage_summaries": "BackupUsageSummariesOperations",
"operations": "Operations",
"backup_resource_vault_configs": "BackupResourceVaultConfigsOperations",
"backup_resource_encryption_configs": "BackupResourceEncryptionConfigsOperations",
"private_endpoint_connection": "PrivateEndpointConnectionOperations",
Expand Down Expand Up @@ -143,13 +149,7 @@
"crr_operation_status": "CrrOperationStatusOperations",
"backup_resource_storage_configs": "BackupResourceStorageConfigsOperations",
"recovery_points_crr": "RecoveryPointsCrrOperations",
"backup_protected_items_crr": "BackupProtectedItemsCrrOperations",
"protection_intent": "ProtectionIntentOperations",
"backup_status": "BackupStatusOperations",
"feature_support": "FeatureSupportOperations",
"backup_protection_intent": "BackupProtectionIntentOperations",
"backup_usage_summaries": "BackupUsageSummariesOperations",
"operations": "Operations"
"backup_protected_items_crr": "BackupProtectedItemsCrrOperations"
},
"operation_mixins": {
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import RecoveryServicesBackupClientConfiguration
from .operations import ProtectionIntentOperations
from .operations import BackupStatusOperations
from .operations import FeatureSupportOperations
from .operations import BackupProtectionIntentOperations
from .operations import BackupUsageSummariesOperations
from .operations import Operations
from .operations import BackupResourceVaultConfigsOperations
from .operations import BackupResourceEncryptionConfigsOperations
from .operations import PrivateEndpointConnectionOperations
Expand Down Expand Up @@ -66,18 +72,24 @@
from .operations import BackupResourceStorageConfigsOperations
from .operations import RecoveryPointsCrrOperations
from .operations import BackupProtectedItemsCrrOperations
from .operations import ProtectionIntentOperations
from .operations import BackupStatusOperations
from .operations import FeatureSupportOperations
from .operations import BackupProtectionIntentOperations
from .operations import BackupUsageSummariesOperations
from .operations import Operations
from . import models


class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
:ivar protection_intent: ProtectionIntentOperations operations
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations
:ivar backup_status: BackupStatusOperations operations
:vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations
:ivar feature_support: FeatureSupportOperations operations
:vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations
:ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations
:vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations
:ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations
Expand Down Expand Up @@ -170,18 +182,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
:vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsCrrOperations
:ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations
:vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsCrrOperations
:ivar protection_intent: ProtectionIntentOperations operations
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations
:ivar backup_status: BackupStatusOperations operations
:vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations
:ivar feature_support: FeatureSupportOperations operations
:vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription Id.
Expand All @@ -208,6 +208,18 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.protection_intent = ProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_status = BackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.feature_support = FeatureSupportOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_intent = BackupProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_usage_summaries = BackupUsageSummariesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(
Expand Down Expand Up @@ -300,18 +312,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protected_items_crr = BackupProtectedItemsCrrOperations(
self._client, self._config, self._serialize, self._deserialize)
self.protection_intent = ProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_status = BackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.feature_support = FeatureSupportOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_intent = BackupProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_usage_summaries = BackupUsageSummariesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
from azure.core.credentials_async import AsyncTokenCredential

from ._configuration import RecoveryServicesBackupClientConfiguration
from .operations import ProtectionIntentOperations
from .operations import BackupStatusOperations
from .operations import FeatureSupportOperations
from .operations import BackupProtectionIntentOperations
from .operations import BackupUsageSummariesOperations
from .operations import Operations
from .operations import BackupResourceVaultConfigsOperations
from .operations import BackupResourceEncryptionConfigsOperations
from .operations import PrivateEndpointConnectionOperations
Expand Down Expand Up @@ -64,18 +70,24 @@
from .operations import BackupResourceStorageConfigsOperations
from .operations import RecoveryPointsCrrOperations
from .operations import BackupProtectedItemsCrrOperations
from .operations import ProtectionIntentOperations
from .operations import BackupStatusOperations
from .operations import FeatureSupportOperations
from .operations import BackupProtectionIntentOperations
from .operations import BackupUsageSummariesOperations
from .operations import Operations
from .. import models


class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
:ivar protection_intent: ProtectionIntentOperations operations
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations
:ivar backup_status: BackupStatusOperations operations
:vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations
:ivar feature_support: FeatureSupportOperations operations
:vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations
:ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations
:vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.aio.operations.BackupResourceVaultConfigsOperations
:ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations
Expand Down Expand Up @@ -168,18 +180,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
:vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.aio.operations.RecoveryPointsCrrOperations
:ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations
:vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectedItemsCrrOperations
:ivar protection_intent: ProtectionIntentOperations operations
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations
:ivar backup_status: BackupStatusOperations operations
:vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations
:ivar feature_support: FeatureSupportOperations operations
:vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription Id.
Expand All @@ -205,6 +205,18 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.protection_intent = ProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_status = BackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.feature_support = FeatureSupportOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_intent = BackupProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_usage_summaries = BackupUsageSummariesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(
Expand Down Expand Up @@ -297,18 +309,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protected_items_crr = BackupProtectedItemsCrrOperations(
self._client, self._config, self._serialize, self._deserialize)
self.protection_intent = ProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_status = BackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.feature_support = FeatureSupportOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_intent = BackupProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_usage_summaries = BackupUsageSummariesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._protection_intent_operations import ProtectionIntentOperations
from ._backup_status_operations import BackupStatusOperations
from ._feature_support_operations import FeatureSupportOperations
from ._backup_protection_intent_operations import BackupProtectionIntentOperations
from ._backup_usage_summaries_operations import BackupUsageSummariesOperations
from ._operations import Operations
from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations
from ._backup_resource_encryption_configs_operations import BackupResourceEncryptionConfigsOperations
from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations
Expand Down Expand Up @@ -53,14 +59,14 @@
from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations
from ._recovery_points_crr_operations import RecoveryPointsCrrOperations
from ._backup_protected_items_crr_operations import BackupProtectedItemsCrrOperations
from ._protection_intent_operations import ProtectionIntentOperations
from ._backup_status_operations import BackupStatusOperations
from ._feature_support_operations import FeatureSupportOperations
from ._backup_protection_intent_operations import BackupProtectionIntentOperations
from ._backup_usage_summaries_operations import BackupUsageSummariesOperations
from ._operations import Operations

__all__ = [
'ProtectionIntentOperations',
'BackupStatusOperations',
'FeatureSupportOperations',
'BackupProtectionIntentOperations',
'BackupUsageSummariesOperations',
'Operations',
'BackupResourceVaultConfigsOperations',
'BackupResourceEncryptionConfigsOperations',
'PrivateEndpointConnectionOperations',
Expand Down Expand Up @@ -108,10 +114,4 @@
'BackupResourceStorageConfigsOperations',
'RecoveryPointsCrrOperations',
'BackupProtectedItemsCrrOperations',
'ProtectionIntentOperations',
'BackupStatusOperations',
'FeatureSupportOperations',
'BackupProtectionIntentOperations',
'BackupUsageSummariesOperations',
'Operations',
]
Loading

0 comments on commit a7c92ba

Please sign in to comment.