Skip to content
Open
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
12 changes: 6 additions & 6 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
from ._models_py3 import BatchAccountRegenerateKeyParameters
from ._models_py3 import BatchAccountUpdateParameters
from ._models_py3 import BatchLocationQuota
from ._models_py3 import CIFSMountConfiguration
from ._models_py3 import Certificate
from ._models_py3 import CertificateBaseProperties
from ._models_py3 import CertificateCreateOrUpdateParameters
from ._models_py3 import CertificateReference
from ._models_py3 import CheckNameAvailabilityParameters
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import CIFSMountConfiguration
from ._models_py3 import CloudServiceConfiguration
from ._models_py3 import ContainerConfiguration
from ._models_py3 import ContainerRegistry
Expand All @@ -49,9 +49,9 @@
from ._models_py3 import LinuxUserConfiguration
from ._models_py3 import MetadataItem
from ._models_py3 import MountConfiguration
from ._models_py3 import NFSMountConfiguration
from ._models_py3 import NetworkConfiguration
from ._models_py3 import NetworkSecurityGroupRule
from ._models_py3 import NFSMountConfiguration
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Pool
Expand Down Expand Up @@ -90,13 +90,13 @@
from ._models import BatchAccountRegenerateKeyParameters
from ._models import BatchAccountUpdateParameters
from ._models import BatchLocationQuota
from ._models import CIFSMountConfiguration
from ._models import Certificate
from ._models import CertificateBaseProperties
from ._models import CertificateCreateOrUpdateParameters
from ._models import CertificateReference
from ._models import CheckNameAvailabilityParameters
from ._models import CheckNameAvailabilityResult
from ._models import CIFSMountConfiguration
from ._models import CloudServiceConfiguration
from ._models import ContainerConfiguration
from ._models import ContainerRegistry
Expand All @@ -111,9 +111,9 @@
from ._models import LinuxUserConfiguration
from ._models import MetadataItem
from ._models import MountConfiguration
from ._models import NFSMountConfiguration
from ._models import NetworkConfiguration
from ._models import NetworkSecurityGroupRule
from ._models import NFSMountConfiguration
from ._models import Operation
from ._models import OperationDisplay
from ._models import Pool
Expand Down Expand Up @@ -183,13 +183,13 @@
'BatchAccountRegenerateKeyParameters',
'BatchAccountUpdateParameters',
'BatchLocationQuota',
'CIFSMountConfiguration',
'Certificate',
'CertificateBaseProperties',
'CertificateCreateOrUpdateParameters',
'CertificateReference',
'CheckNameAvailabilityParameters',
'CheckNameAvailabilityResult',
'CIFSMountConfiguration',
'CloudServiceConfiguration',
'ContainerConfiguration',
'ContainerRegistry',
Expand All @@ -204,9 +204,9 @@
'LinuxUserConfiguration',
'MetadataItem',
'MountConfiguration',
'NFSMountConfiguration',
'NetworkConfiguration',
'NetworkSecurityGroupRule',
'NFSMountConfiguration',
'Operation',
'OperationDisplay',
'Pool',
Expand Down
170 changes: 85 additions & 85 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,54 @@ def __init__(self, **kwargs):
self.account_quota = None


class CIFSMountConfiguration(Model):
"""Information used to connect to a CIFS file system.

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

:param username: Required. The user to use for authentication against the
CIFS file system.
:type username: str
:param source: Required. The URI of the file system to mount.
:type source: str
:param relative_mount_path: Required. The relative path on the compute
node where the file system will be mounted. All file systems are mounted
relative to the Batch mounts directory, accessible via the
AZ_BATCH_NODE_MOUNTS_DIR environment variable.
:type relative_mount_path: str
:param mount_options: Additional command line options to pass to the mount
command. These are 'net use' options in Windows and 'mount' options in
Linux.
:type mount_options: str
:param password: Required. The password to use for authentication against
the CIFS file system.
:type password: str
"""

_validation = {
'username': {'required': True},
'source': {'required': True},
'relative_mount_path': {'required': True},
'password': {'required': True},
}

_attribute_map = {
'username': {'key': 'username', 'type': 'str'},
'source': {'key': 'source', 'type': 'str'},
'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'},
'mount_options': {'key': 'mountOptions', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CIFSMountConfiguration, self).__init__(**kwargs)
self.username = kwargs.get('username', None)
self.source = kwargs.get('source', None)
self.relative_mount_path = kwargs.get('relative_mount_path', None)
self.mount_options = kwargs.get('mount_options', None)
self.password = kwargs.get('password', None)


class Certificate(ProxyResource):
"""Contains information about a certificate.

Expand Down Expand Up @@ -1109,54 +1157,6 @@ def __init__(self, **kwargs):
self.message = None


class CIFSMountConfiguration(Model):
"""Information used to connect to a CIFS file system.

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

:param username: Required. The user to use for authentication against the
CIFS file system.
:type username: str
:param source: Required. The URI of the file system to mount.
:type source: str
:param relative_mount_path: Required. The relative path on the compute
node where the file system will be mounted. All file systems are mounted
relative to the Batch mounts directory, accessible via the
AZ_BATCH_NODE_MOUNTS_DIR environment variable.
:type relative_mount_path: str
:param mount_options: Additional command line options to pass to the mount
command. These are 'net use' options in Windows and 'mount' options in
Linux.
:type mount_options: str
:param password: Required. The password to use for authentication against
the CIFS file system.
:type password: str
"""

_validation = {
'username': {'required': True},
'source': {'required': True},
'relative_mount_path': {'required': True},
'password': {'required': True},
}

_attribute_map = {
'username': {'key': 'username', 'type': 'str'},
'source': {'key': 'source', 'type': 'str'},
'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'},
'mount_options': {'key': 'mountOptions', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CIFSMountConfiguration, self).__init__(**kwargs)
self.username = kwargs.get('username', None)
self.source = kwargs.get('source', None)
self.relative_mount_path = kwargs.get('relative_mount_path', None)
self.mount_options = kwargs.get('mount_options', None)
self.password = kwargs.get('password', None)


class CloudError(Model):
"""An error response from the Batch service.

Expand Down Expand Up @@ -1770,6 +1770,42 @@ def __init__(self, **kwargs):
self.azure_file_share_configuration = kwargs.get('azure_file_share_configuration', None)


class NFSMountConfiguration(Model):
"""Information used to connect to an NFS file system.

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

:param source: Required. The URI of the file system to mount.
:type source: str
:param relative_mount_path: Required. The relative path on the compute
node where the file system will be mounted. All file systems are mounted
relative to the Batch mounts directory, accessible via the
AZ_BATCH_NODE_MOUNTS_DIR environment variable.
:type relative_mount_path: str
:param mount_options: Additional command line options to pass to the mount
command. These are 'net use' options in Windows and 'mount' options in
Linux.
:type mount_options: str
"""

_validation = {
'source': {'required': True},
'relative_mount_path': {'required': True},
}

_attribute_map = {
'source': {'key': 'source', 'type': 'str'},
'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'},
'mount_options': {'key': 'mountOptions', 'type': 'str'},
}

def __init__(self, **kwargs):
super(NFSMountConfiguration, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.relative_mount_path = kwargs.get('relative_mount_path', None)
self.mount_options = kwargs.get('mount_options', None)


class NetworkConfiguration(Model):
"""The network configuration for a pool.

Expand Down Expand Up @@ -1879,42 +1915,6 @@ def __init__(self, **kwargs):
self.source_port_ranges = kwargs.get('source_port_ranges', None)


class NFSMountConfiguration(Model):
"""Information used to connect to an NFS file system.

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

:param source: Required. The URI of the file system to mount.
:type source: str
:param relative_mount_path: Required. The relative path on the compute
node where the file system will be mounted. All file systems are mounted
relative to the Batch mounts directory, accessible via the
AZ_BATCH_NODE_MOUNTS_DIR environment variable.
:type relative_mount_path: str
:param mount_options: Additional command line options to pass to the mount
command. These are 'net use' options in Windows and 'mount' options in
Linux.
:type mount_options: str
"""

_validation = {
'source': {'required': True},
'relative_mount_path': {'required': True},
}

_attribute_map = {
'source': {'key': 'source', 'type': 'str'},
'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'},
'mount_options': {'key': 'mountOptions', 'type': 'str'},
}

def __init__(self, **kwargs):
super(NFSMountConfiguration, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.relative_mount_path = kwargs.get('relative_mount_path', None)
self.mount_options = kwargs.get('mount_options', None)


class Operation(Model):
"""A REST API operation.

Expand Down Expand Up @@ -2015,7 +2015,7 @@ class Pool(ProxyResource):
pool are the same size. For information about available sizes of virtual
machines for Cloud Services pools (pools created with
cloudServiceConfiguration), see Sizes for Cloud Services
(http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
(https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
Batch supports all Cloud Services VM sizes except ExtraSmall. For
information about available VM sizes for pools using images from the
Virtual Machines Marketplace (pools created with
Expand Down
Loading