models_v2.smb_config module¶
-
class
models_v2.smb_config.
SmbConfig
(enable_smb_view_discovery=None, enable_smb_access_based_enumeration=None, enable_smb_encryption=None, enforce_smb_encryption=None, enable_fast_durable_handle=None, enable_smb_oplock=None, smb_permissions_info=None, share_permissions=None)[source]¶ Bases:
object
Implementation of the ‘SmbConfig’ model.
Specifies the SMB config settings for this View.
- Attributes:
- enable_smb_view_discovery (bool): If set, it enables discovery of view
for SMB.
- enable_smb_access_based_enumeration (bool): Specifies if access-based
enumeration should be enabled. If ‘true’, only files and folders that the user has permissions to access are visible on the SMB share for that user.
- enable_smb_encryption (bool): Specifies the SMB encryption for the
View. If set, it enables the SMB encryption for the View. Encryption is supported only by SMB 3.x dialects. Dialects that do not support would still access data in unencrypted format.
- enforce_smb_encryption (bool): Specifies the SMB encryption for all
the sessions for the View. If set, encryption is enforced for all the sessions for the View. When enabled all future and existing unencrypted sessions are disallowed.
- enable_fast_durable_handle (bool): Specifies whether fast durable
handle is enabled. If enabled, view open handle will be kept in memory, which results in a higher performance. But the handles cannot be recovered if node or service crashes.
- enable_smb_oplock (bool): Specifies whether SMB opportunistic lock is
enabled.
- smb_permissions_info (SMBPermissionsInformation): Specifies
information about SMB permissions.
- share_permissions (list of SMBPermission): Specifies a list of share
level permissions.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.