Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR netapp/resource-manager] New swagger for 2019-08-01 API #8487

Merged
merged 1 commit into from
Nov 7, 2019
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from msrest import Serializer, Deserializer

from ._configuration import AzureNetAppFilesManagementClientConfiguration
from .operations import AzureNetAppFilesManagementClientOperationsMixin
from .operations import Operations
from .operations import NetAppResourceOperations
from .operations import AccountsOperations
from .operations import PoolsOperations
from .operations import VolumesOperations
Expand All @@ -23,14 +23,16 @@
from . import models


class AzureNetAppFilesManagementClient(AzureNetAppFilesManagementClientOperationsMixin, SDKClient):
class AzureNetAppFilesManagementClient(SDKClient):
"""Microsoft NetApp Azure Resource Provider specification

:ivar config: Configuration for client.
:vartype config: AzureNetAppFilesManagementClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.netapp.operations.Operations
:ivar net_app_resource: NetAppResource operations
:vartype net_app_resource: azure.mgmt.netapp.operations.NetAppResourceOperations
:ivar accounts: Accounts operations
:vartype accounts: azure.mgmt.netapp.operations.AccountsOperations
:ivar pools: Pools operations
Expand Down Expand Up @@ -59,12 +61,14 @@ 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 = '2019-07-01'
self.api_version = '2019-08-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.net_app_resource = NetAppResourceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.accounts = AccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.pools = PoolsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ._models_py3 import NetAppAccountPatch
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import ReplicationObject
from ._models_py3 import ResourceNameAvailability
from ._models_py3 import ResourceNameAvailabilityRequest
from ._models_py3 import ServiceSpecification
Expand All @@ -29,6 +30,7 @@
from ._models_py3 import Volume
from ._models_py3 import VolumePatch
from ._models_py3 import VolumePatchPropertiesExportPolicy
from ._models_py3 import VolumePropertiesDataProtection
from ._models_py3 import VolumePropertiesExportPolicy
except (SyntaxError, ImportError):
from ._models import ActiveDirectory
Expand All @@ -42,6 +44,7 @@
from ._models import NetAppAccountPatch
from ._models import Operation
from ._models import OperationDisplay
from ._models import ReplicationObject
from ._models import ResourceNameAvailability
from ._models import ResourceNameAvailabilityRequest
from ._models import ServiceSpecification
Expand All @@ -50,6 +53,7 @@
from ._models import Volume
from ._models import VolumePatch
from ._models import VolumePatchPropertiesExportPolicy
from ._models import VolumePropertiesDataProtection
from ._models import VolumePropertiesExportPolicy
from ._paged_models import CapacityPoolPaged
from ._paged_models import MountTargetPaged
Expand All @@ -75,6 +79,7 @@
'NetAppAccountPatch',
'Operation',
'OperationDisplay',
'ReplicationObject',
'ResourceNameAvailability',
'ResourceNameAvailabilityRequest',
'ServiceSpecification',
Expand All @@ -83,6 +88,7 @@
'Volume',
'VolumePatch',
'VolumePatchPropertiesExportPolicy',
'VolumePropertiesDataProtection',
'VolumePropertiesExportPolicy',
'OperationPaged',
'NetAppAccountPaged',
Expand Down
111 changes: 91 additions & 20 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class ActiveDirectory(Model):
:type password: str
:param domain: Name of the Active Directory domain
:type domain: str
:param dns: Comma separated list of DNS server IP addresses for the Active
Directory domain
:param dns: Comma separated list of DNS server IP addresses (IPv4 only)
for the Active Directory domain
:type dns: str
:param status: Status of the Active Directory
:type status: str
Expand Down Expand Up @@ -77,7 +77,7 @@ class CapacityPool(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar pool_id: poolId. UUID v4 used to identify the Pool
:vartype pool_id: str
:param size: Required. size. Provisioned size of the pool (in bytes).
Expand Down Expand Up @@ -108,7 +108,7 @@ class CapacityPool(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'pool_id': {'key': 'properties.poolId', 'type': 'str'},
'size': {'key': 'properties.size', 'type': 'long'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
Expand Down Expand Up @@ -143,7 +143,7 @@ class CapacityPoolPatch(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:param size: size. Provisioned size of the pool (in bytes). Allowed values
are in 4TiB chunks (value must be multiply of 4398046511104). Default
value: 4398046511104 .
Expand All @@ -166,7 +166,7 @@ class CapacityPoolPatch(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'size': {'key': 'properties.size', 'type': 'long'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
}
Expand Down Expand Up @@ -316,8 +316,10 @@ class MountTarget(Model):
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar mount_target_id: mountTargetId. UUID v4 used to identify the
MountTarget
:vartype mount_target_id: str
Expand Down Expand Up @@ -351,6 +353,7 @@ class MountTarget(Model):
'location': {'required': True},
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'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}$'},
'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}$'},
'ip_address': {'readonly': True},
Expand All @@ -361,7 +364,8 @@ class MountTarget(Model):
'location': {'key': 'location', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'mount_target_id': {'key': 'properties.mountTargetId', 'type': 'str'},
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
'ip_address': {'key': 'properties.ipAddress', 'type': 'str'},
Expand All @@ -379,6 +383,7 @@ def __init__(self, **kwargs):
self.location = kwargs.get('location', None)
self.id = None
self.name = None
self.type = None
self.tags = kwargs.get('tags', None)
self.mount_target_id = None
self.file_system_id = kwargs.get('file_system_id', None)
Expand Down Expand Up @@ -409,7 +414,7 @@ class NetAppAccount(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar provisioning_state: Azure lifecycle management
:vartype provisioning_state: str
:param active_directories: Active Directories
Expand All @@ -429,7 +434,7 @@ class NetAppAccount(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'active_directories': {'key': 'properties.activeDirectories', 'type': '[ActiveDirectory]'},
}
Expand Down Expand Up @@ -460,7 +465,7 @@ class NetAppAccountPatch(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar provisioning_state: Azure lifecycle management
:vartype provisioning_state: str
:param active_directories: Active Directories
Expand All @@ -479,7 +484,7 @@ class NetAppAccountPatch(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'active_directories': {'key': 'properties.activeDirectories', 'type': '[ActiveDirectory]'},
}
Expand Down Expand Up @@ -553,6 +558,44 @@ def __init__(self, **kwargs):
self.description = kwargs.get('description', None)


class ReplicationObject(Model):
"""Replication properties.

All required parameters must be populated in order to send to Azure.

:param replication_id: replicationId. Id
:type replication_id: str
:param endpoint_type: Required. endpointType. Indicates whether the local
volume is the source or destination for the Volume Replication
:type endpoint_type: str
:param replication_schedule: Required. replicationSchedule. Schedule
:type replication_schedule: str
:param remote_volume_resource_id: Required. remoteVolumeResourceId. The
resource ID of the remote volume.
:type remote_volume_resource_id: str
"""

_validation = {
'endpoint_type': {'required': True},
'replication_schedule': {'required': True},
'remote_volume_resource_id': {'required': True},
}

_attribute_map = {
'replication_id': {'key': 'replicationId', 'type': 'str'},
'endpoint_type': {'key': 'endpointType', 'type': 'str'},
'replication_schedule': {'key': 'replicationSchedule', 'type': 'str'},
'remote_volume_resource_id': {'key': 'remoteVolumeResourceId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ReplicationObject, self).__init__(**kwargs)
self.replication_id = kwargs.get('replication_id', None)
self.endpoint_type = kwargs.get('endpoint_type', None)
self.replication_schedule = kwargs.get('replication_schedule', None)
self.remote_volume_resource_id = kwargs.get('remote_volume_resource_id', None)


class ResourceNameAvailability(Model):
"""Information regarding availability of a resource name.

Expand Down Expand Up @@ -656,7 +699,7 @@ class Snapshot(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot
:vartype snapshot_id: str
:param file_system_id: fileSystemId. UUID v4 used to identify the
Expand Down Expand Up @@ -684,7 +727,7 @@ class Snapshot(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
'created': {'key': 'properties.created', 'type': 'iso-8601'},
Expand All @@ -708,11 +751,11 @@ class SnapshotPatch(Model):
"""Snapshot patch.

:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
Expand All @@ -737,7 +780,7 @@ class Volume(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:ivar file_system_id: FileSystem ID. Unique FileSystem Identifier.
:vartype file_system_id: str
:param creation_token: Required. Creation Token or File Path. A unique
Expand Down Expand Up @@ -770,6 +813,12 @@ class Volume(Model):
:type subnet_id: str
:param mount_targets: mountTargets. List of mount targets
:type mount_targets: object
:param volume_type: What type of volume is this
:type volume_type: str
:param data_protection: DataProtection. DataProtection volume, can have a
replication object
:type data_protection:
~azure.mgmt.netapp.models.VolumePropertiesDataProtection
"""

_validation = {
Expand All @@ -791,7 +840,7 @@ class Volume(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
'creation_token': {'key': 'properties.creationToken', 'type': 'str'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
Expand All @@ -803,6 +852,8 @@ class Volume(Model):
'baremetal_tenant_id': {'key': 'properties.baremetalTenantId', 'type': 'str'},
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'},
'mount_targets': {'key': 'properties.mountTargets', 'type': 'object'},
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
}

def __init__(self, **kwargs):
Expand All @@ -823,6 +874,8 @@ def __init__(self, **kwargs):
self.baremetal_tenant_id = None
self.subnet_id = kwargs.get('subnet_id', None)
self.mount_targets = kwargs.get('mount_targets', None)
self.volume_type = kwargs.get('volume_type', None)
self.data_protection = kwargs.get('data_protection', None)


class VolumePatch(Model):
Expand All @@ -840,7 +893,7 @@ class VolumePatch(Model):
:ivar type: Resource type
:vartype type: str
:param tags: Resource tags
:type tags: object
:type tags: dict[str, str]
:param service_level: serviceLevel. The service level of the file system.
Possible values include: 'Standard', 'Premium', 'Ultra'. Default value:
"Premium" .
Expand All @@ -867,7 +920,7 @@ class VolumePatch(Model):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'},
'export_policy': {'key': 'properties.exportPolicy', 'type': 'VolumePatchPropertiesExportPolicy'},
Expand Down Expand Up @@ -903,6 +956,24 @@ def __init__(self, **kwargs):
self.rules = kwargs.get('rules', None)


class VolumePropertiesDataProtection(Model):
"""DataProtection.

DataProtection volume, can have a replication object.

:param replication: Replication. Replication properties
:type replication: ~azure.mgmt.netapp.models.ReplicationObject
"""

_attribute_map = {
'replication': {'key': 'replication', 'type': 'ReplicationObject'},
}

def __init__(self, **kwargs):
super(VolumePropertiesDataProtection, self).__init__(**kwargs)
self.replication = kwargs.get('replication', None)


class VolumePropertiesExportPolicy(Model):
"""exportPolicy.

Expand Down
Loading