Skip to content

Commit ca42cd1

Browse files
changlong-liuSDK Automation
andauthored
Sdk automation/azure mgmt netapp (Azure#11678)
* Update from master * run test * changelog and version * add recordings (from Audunn) * set release date * remove meaningless print Co-authored-by: SDK Automation <[email protected]>
1 parent 70aec05 commit ca42cd1

25 files changed

+8755
-5150
lines changed

sdk/netapp/azure-mgmt-netapp/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.11.0 (2020-07-09)
4+
5+
**Breaking changes**
6+
7+
- Volume parameter mount_targets changes type from MountTarget to MountTargetProperties
8+
39
## 0.10.0 (2020-04-21)
410

511
**Features**

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from ._models_py3 import ExportPolicyRule
1919
from ._models_py3 import MetricSpecification
2020
from ._models_py3 import MountTarget
21+
from ._models_py3 import MountTargetProperties
2122
from ._models_py3 import NetAppAccount
2223
from ._models_py3 import NetAppAccountPatch
2324
from ._models_py3 import Operation
@@ -43,6 +44,7 @@
4344
from ._models import ExportPolicyRule
4445
from ._models import MetricSpecification
4546
from ._models import MountTarget
47+
from ._models import MountTargetProperties
4648
from ._models import NetAppAccount
4749
from ._models import NetAppAccountPatch
4850
from ._models import Operation
@@ -83,6 +85,7 @@
8385
'ExportPolicyRule',
8486
'MetricSpecification',
8587
'MountTarget',
88+
'MountTargetProperties',
8689
'NetAppAccount',
8790
'NetAppAccountPatch',
8891
'Operation',

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,72 @@ def __init__(self, **kwargs):
413413
self.smb_server_fqdn = kwargs.get('smb_server_fqdn', None)
414414

415415

416+
class MountTargetProperties(Model):
417+
"""Mount target properties.
418+
419+
Variables are only populated by the server, and will be ignored when
420+
sending a request.
421+
422+
All required parameters must be populated in order to send to Azure.
423+
424+
:ivar mount_target_id: mountTargetId. UUID v4 used to identify the
425+
MountTarget
426+
:vartype mount_target_id: str
427+
:param file_system_id: Required. fileSystemId. UUID v4 used to identify
428+
the MountTarget
429+
:type file_system_id: str
430+
:ivar ip_address: ipAddress. The mount target's IPv4 address
431+
:vartype ip_address: str
432+
:param subnet: subnet. The subnet
433+
:type subnet: str
434+
:param start_ip: startIp. The start of IPv4 address range to use when
435+
creating a new mount target
436+
:type start_ip: str
437+
:param end_ip: endIp. The end of IPv4 address range to use when creating a
438+
new mount target
439+
:type end_ip: str
440+
:param gateway: gateway. The gateway of the IPv4 address range to use when
441+
creating a new mount target
442+
:type gateway: str
443+
:param netmask: netmask. The netmask of the IPv4 address range to use when
444+
creating a new mount target
445+
:type netmask: str
446+
:param smb_server_fqdn: smbServerFQDN. The SMB server's Fully Qualified
447+
Domain Name, FQDN
448+
:type smb_server_fqdn: str
449+
"""
450+
451+
_validation = {
452+
'mount_target_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
453+
'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
454+
'ip_address': {'readonly': True},
455+
}
456+
457+
_attribute_map = {
458+
'mount_target_id': {'key': 'mountTargetId', 'type': 'str'},
459+
'file_system_id': {'key': 'fileSystemId', 'type': 'str'},
460+
'ip_address': {'key': 'ipAddress', 'type': 'str'},
461+
'subnet': {'key': 'subnet', 'type': 'str'},
462+
'start_ip': {'key': 'startIp', 'type': 'str'},
463+
'end_ip': {'key': 'endIp', 'type': 'str'},
464+
'gateway': {'key': 'gateway', 'type': 'str'},
465+
'netmask': {'key': 'netmask', 'type': 'str'},
466+
'smb_server_fqdn': {'key': 'smbServerFqdn', 'type': 'str'},
467+
}
468+
469+
def __init__(self, **kwargs):
470+
super(MountTargetProperties, self).__init__(**kwargs)
471+
self.mount_target_id = None
472+
self.file_system_id = kwargs.get('file_system_id', None)
473+
self.ip_address = None
474+
self.subnet = kwargs.get('subnet', None)
475+
self.start_ip = kwargs.get('start_ip', None)
476+
self.end_ip = kwargs.get('end_ip', None)
477+
self.gateway = kwargs.get('gateway', None)
478+
self.netmask = kwargs.get('netmask', None)
479+
self.smb_server_fqdn = kwargs.get('smb_server_fqdn', None)
480+
481+
416482
class NetAppAccount(Model):
417483
"""NetApp account resource.
418484
@@ -851,7 +917,7 @@ class Volume(Model):
851917
Must have the delegation Microsoft.NetApp/volumes
852918
:type subnet_id: str
853919
:param mount_targets: mountTargets. List of mount targets
854-
:type mount_targets: list[~azure.mgmt.netapp.models.MountTarget]
920+
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
855921
:param volume_type: What type of volume is this
856922
:type volume_type: str
857923
:param data_protection: DataProtection. DataProtection type volumes
@@ -892,7 +958,7 @@ class Volume(Model):
892958
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
893959
'baremetal_tenant_id': {'key': 'properties.baremetalTenantId', 'type': 'str'},
894960
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'},
895-
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTarget]'},
961+
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTargetProperties]'},
896962
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
897963
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
898964
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,72 @@ def __init__(self, *, location: str, file_system_id: str, tags=None, subnet: str
413413
self.smb_server_fqdn = smb_server_fqdn
414414

415415

416+
class MountTargetProperties(Model):
417+
"""Mount target properties.
418+
419+
Variables are only populated by the server, and will be ignored when
420+
sending a request.
421+
422+
All required parameters must be populated in order to send to Azure.
423+
424+
:ivar mount_target_id: mountTargetId. UUID v4 used to identify the
425+
MountTarget
426+
:vartype mount_target_id: str
427+
:param file_system_id: Required. fileSystemId. UUID v4 used to identify
428+
the MountTarget
429+
:type file_system_id: str
430+
:ivar ip_address: ipAddress. The mount target's IPv4 address
431+
:vartype ip_address: str
432+
:param subnet: subnet. The subnet
433+
:type subnet: str
434+
:param start_ip: startIp. The start of IPv4 address range to use when
435+
creating a new mount target
436+
:type start_ip: str
437+
:param end_ip: endIp. The end of IPv4 address range to use when creating a
438+
new mount target
439+
:type end_ip: str
440+
:param gateway: gateway. The gateway of the IPv4 address range to use when
441+
creating a new mount target
442+
:type gateway: str
443+
:param netmask: netmask. The netmask of the IPv4 address range to use when
444+
creating a new mount target
445+
:type netmask: str
446+
:param smb_server_fqdn: smbServerFQDN. The SMB server's Fully Qualified
447+
Domain Name, FQDN
448+
:type smb_server_fqdn: str
449+
"""
450+
451+
_validation = {
452+
'mount_target_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
453+
'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
454+
'ip_address': {'readonly': True},
455+
}
456+
457+
_attribute_map = {
458+
'mount_target_id': {'key': 'mountTargetId', 'type': 'str'},
459+
'file_system_id': {'key': 'fileSystemId', 'type': 'str'},
460+
'ip_address': {'key': 'ipAddress', 'type': 'str'},
461+
'subnet': {'key': 'subnet', 'type': 'str'},
462+
'start_ip': {'key': 'startIp', 'type': 'str'},
463+
'end_ip': {'key': 'endIp', 'type': 'str'},
464+
'gateway': {'key': 'gateway', 'type': 'str'},
465+
'netmask': {'key': 'netmask', 'type': 'str'},
466+
'smb_server_fqdn': {'key': 'smbServerFqdn', 'type': 'str'},
467+
}
468+
469+
def __init__(self, *, file_system_id: str, subnet: str=None, start_ip: str=None, end_ip: str=None, gateway: str=None, netmask: str=None, smb_server_fqdn: str=None, **kwargs) -> None:
470+
super(MountTargetProperties, self).__init__(**kwargs)
471+
self.mount_target_id = None
472+
self.file_system_id = file_system_id
473+
self.ip_address = None
474+
self.subnet = subnet
475+
self.start_ip = start_ip
476+
self.end_ip = end_ip
477+
self.gateway = gateway
478+
self.netmask = netmask
479+
self.smb_server_fqdn = smb_server_fqdn
480+
481+
416482
class NetAppAccount(Model):
417483
"""NetApp account resource.
418484
@@ -851,7 +917,7 @@ class Volume(Model):
851917
Must have the delegation Microsoft.NetApp/volumes
852918
:type subnet_id: str
853919
:param mount_targets: mountTargets. List of mount targets
854-
:type mount_targets: list[~azure.mgmt.netapp.models.MountTarget]
920+
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
855921
:param volume_type: What type of volume is this
856922
:type volume_type: str
857923
:param data_protection: DataProtection. DataProtection type volumes
@@ -892,7 +958,7 @@ class Volume(Model):
892958
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
893959
'baremetal_tenant_id': {'key': 'properties.baremetalTenantId', 'type': 'str'},
894960
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'},
895-
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTarget]'},
961+
'mount_targets': {'key': 'properties.mountTargets', 'type': '[MountTargetProperties]'},
896962
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
897963
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
898964
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.10.0"
12+
VERSION = "0.11.0"
1313

sdk/netapp/azure-mgmt-netapp/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
pass
3737

3838
# Version extraction inspired from 'requests'
39-
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
39+
with open(os.path.join(package_folder_path, 'version.py')
40+
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
41+
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
4042
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
4143
fd.read(), re.MULTILINE).group(1)
4244

0 commit comments

Comments
 (0)