Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ._models_py3 import ExportPolicyRule
from ._models_py3 import MetricSpecification
from ._models_py3 import MountTarget
from ._models_py3 import MountTargetList
from ._models_py3 import NetAppAccount
from ._models_py3 import NetAppAccountPatch
from ._models_py3 import Operation
Expand All @@ -43,6 +44,7 @@
from ._models import ExportPolicyRule
from ._models import MetricSpecification
from ._models import MountTarget
from ._models import MountTargetList
from ._models import NetAppAccount
from ._models import NetAppAccountPatch
from ._models import Operation
Expand Down Expand Up @@ -84,6 +86,7 @@
'ExportPolicyRule',
'MetricSpecification',
'MountTarget',
'MountTargetList',
'NetAppAccount',
'NetAppAccountPatch',
'Operation',
Expand Down
20 changes: 18 additions & 2 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,22 @@ def __init__(self, **kwargs):
self.provisioning_state = None


class MountTargetList(Model):
"""List of Mount Targets.

:param value: A list of Mount targets
:type value: list[~azure.mgmt.netapp.models.MountTarget]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[MountTarget]'},
}

def __init__(self, **kwargs):
super(MountTargetList, self).__init__(**kwargs)
self.value = kwargs.get('value', None)


class NetAppAccount(Model):
"""NetApp account resource.

Expand Down Expand Up @@ -871,7 +887,7 @@ class Volume(Model):
Must have the delegation Microsoft.NetApp/volumes
:type subnet_id: str
:param mount_targets: mountTargets. List of mount targets
:type mount_targets: object
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetList]
:param volume_type: What type of volume is this
:type volume_type: str
:param data_protection: DataProtection. DataProtection type volumes
Expand Down Expand Up @@ -912,7 +928,7 @@ class Volume(Model):
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
'baremetal_tenant_id': {'key': 'properties.baremetalTenantId', 'type': 'str'},
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'},
'mount_targets': {'key': 'properties.mountTargets', 'type': 'object'},
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTargetList]'},
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,22 @@ def __init__(self, *, location: str, file_system_id: str, tags=None, subnet: str
self.provisioning_state = None


class MountTargetList(Model):
"""List of Mount Targets.

:param value: A list of Mount targets
:type value: list[~azure.mgmt.netapp.models.MountTarget]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[MountTarget]'},
}

def __init__(self, *, value=None, **kwargs) -> None:
super(MountTargetList, self).__init__(**kwargs)
self.value = value


class NetAppAccount(Model):
"""NetApp account resource.

Expand Down Expand Up @@ -871,7 +887,7 @@ class Volume(Model):
Must have the delegation Microsoft.NetApp/volumes
:type subnet_id: str
:param mount_targets: mountTargets. List of mount targets
:type mount_targets: object
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetList]
:param volume_type: What type of volume is this
:type volume_type: str
:param data_protection: DataProtection. DataProtection type volumes
Expand Down Expand Up @@ -912,7 +928,7 @@ class Volume(Model):
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
'baremetal_tenant_id': {'key': 'properties.baremetalTenantId', 'type': 'str'},
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'},
'mount_targets': {'key': 'properties.mountTargets', 'type': 'object'},
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTargetList]'},
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},
Expand Down