Skip to content

Commit

Permalink
CodeGen from PR 13729 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge cc85eaf15f0d870d32a1ff7b58668593079662c4 into f7d973f
  • Loading branch information
SDKAuto committed Mar 30, 2021
1 parent 37380a4 commit c1f4486
Show file tree
Hide file tree
Showing 20 changed files with 394 additions and 88 deletions.
1 change: 1 addition & 0 deletions sdk/netapp/azure-mgmt-netapp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "087968bfb775d192c2c5584e38374e05a4fd3166",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/netapp/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .operations import VolumesOperations
from .operations import SnapshotsOperations
from .operations import SnapshotPoliciesOperations
from .operations import VolumeBackupStatusOperations
from .operations import AccountBackupsOperations
from .operations import BackupsOperations
from .operations import BackupPoliciesOperations
Expand Down Expand Up @@ -47,6 +48,8 @@ class AzureNetAppFilesManagementClient(SDKClient):
:vartype snapshots: azure.mgmt.netapp.operations.SnapshotsOperations
:ivar snapshot_policies: SnapshotPolicies operations
:vartype snapshot_policies: azure.mgmt.netapp.operations.SnapshotPoliciesOperations
:ivar volume_backup_status: VolumeBackupStatus operations
:vartype volume_backup_status: azure.mgmt.netapp.operations.VolumeBackupStatusOperations
:ivar account_backups: AccountBackups operations
:vartype account_backups: azure.mgmt.netapp.operations.AccountBackupsOperations
:ivar backups: Backups operations
Expand All @@ -73,7 +76,7 @@ def __init__(
super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-11-01'
self.api_version = '2020-12-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -91,6 +94,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.snapshot_policies = SnapshotPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.volume_backup_status = VolumeBackupStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.account_backups = AccountBackupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backups = BackupsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from ._models_py3 import BackupPolicyDetails
from ._models_py3 import BackupPolicyPatch
from ._models_py3 import BackupsList
from ._models_py3 import BackupStatus
from ._models_py3 import BreakReplicationRequest
from ._models_py3 import CapacityPool
from ._models_py3 import CapacityPoolPatch
Expand All @@ -39,6 +40,7 @@
from ._models_py3 import QuotaAvailabilityRequest
from ._models_py3 import ReplicationObject
from ._models_py3 import ReplicationStatus
from ._models_py3 import ResourceIdentity
from ._models_py3 import ResourceNameAvailabilityRequest
from ._models_py3 import ServiceSpecification
from ._models_py3 import Snapshot
Expand Down Expand Up @@ -69,6 +71,7 @@
from ._models import BackupPolicyDetails
from ._models import BackupPolicyPatch
from ._models import BackupsList
from ._models import BackupStatus
from ._models import BreakReplicationRequest
from ._models import CapacityPool
from ._models import CapacityPoolPatch
Expand All @@ -89,6 +92,7 @@
from ._models import QuotaAvailabilityRequest
from ._models import ReplicationObject
from ._models import ReplicationStatus
from ._models import ResourceIdentity
from ._models import ResourceNameAvailabilityRequest
from ._models import ServiceSpecification
from ._models import Snapshot
Expand Down Expand Up @@ -123,7 +127,6 @@
CheckNameResourceTypes,
CheckQuotaNameResourceTypes,
ActiveDirectoryStatus,
KeySource,
CreatedByType,
ServiceLevel,
QosType,
Expand All @@ -132,6 +135,7 @@
SecurityStyle,
RelationshipStatus,
MirrorState,
BackupType,
)

__all__ = [
Expand All @@ -144,6 +148,7 @@
'BackupPolicyDetails',
'BackupPolicyPatch',
'BackupsList',
'BackupStatus',
'BreakReplicationRequest',
'CapacityPool',
'CapacityPoolPatch',
Expand All @@ -164,6 +169,7 @@
'QuotaAvailabilityRequest',
'ReplicationObject',
'ReplicationStatus',
'ResourceIdentity',
'ResourceNameAvailabilityRequest',
'ServiceSpecification',
'Snapshot',
Expand Down Expand Up @@ -197,7 +203,6 @@
'CheckNameResourceTypes',
'CheckQuotaNameResourceTypes',
'ActiveDirectoryStatus',
'KeySource',
'CreatedByType',
'ServiceLevel',
'QosType',
Expand All @@ -206,4 +211,5 @@
'SecurityStyle',
'RelationshipStatus',
'MirrorState',
'BackupType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ class ActiveDirectoryStatus(str, Enum):
updating = "Updating" #: Active Directory Updating


class KeySource(str, Enum):

microsoft_net_app = "Microsoft.NetApp" #: The service manages the keys.


class CreatedByType(str, Enum):

user = "User"
Expand Down Expand Up @@ -99,3 +94,9 @@ class MirrorState(str, Enum):
uninitialized = "Uninitialized"
mirrored = "Mirrored"
broken = "Broken"


class BackupType(str, Enum):

manual = "Manual" #: Manual backup
scheduled = "Scheduled" #: Scheduled backup
Loading

0 comments on commit c1f4486

Please sign in to comment.