models_v2.create_view module

class models_v2.create_view.CreateView(storage_domain_id=None, case_insensitive_names_enabled=None, object_services_mapping_config=None, name=None, category=None, protocol_access=None, qos=None, override_global_subnet_whitelist=None, subnet_whitelist=None, override_global_netgroup_whitelist=None, netgroup_whitelist=None, security_mode=None, storage_policy_override=None, logical_quota=None, file_lock_config=None, file_extension_filter=None, antivirus_scan_config=None, description=None, allow_mount_on_windows=None, enable_minion=None, enable_filer_audit_logging=None, tenant_id=None, enable_live_indexing=None, enable_offline_caching=None, access_sids=None, view_lock_enabled=None, is_read_only=None, view_pinning_config=None, self_service_snapshot_config=None, enable_nfs_view_discovery=None, nfs_all_squash=None, nfs_root_permissions=None, nfs_root_squash=None, enable_nfs_unix_authentication=None, enable_nfs_kerberos_authentication=None, enable_nfs_kerberos_integrity=None, enable_nfs_kerberos_privacy=None, 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, s_3_access_path=None, swift_project_domain=None, swift_project_name=None, swift_user_domain=None, swift_username=None)[source]

Bases: object

Implementation of the ‘Create View.’ model.

Specifies the information required for creating a new View w/o required fields.

Attributes:
storage_domain_id (long|int): Specifies the id of the Storage Domain

(View Box) where the View will be created.

case_insensitive_names_enabled (bool): Specifies whether to support

case insensitive file/folder names. This parameter can only be set during create and cannot be changed.

object_services_mapping_config (ObjectServicesMappingConfigEnum):

Specifies the Object Services key mapping config of the view. This parameter can only be set during create and cannot be changed. Configuration of Object Services key mapping. Specifies the type of Object Services key mapping config.

name (string): Specifies the name of the View. category (Category1Enum): Specifies the category of the View. protocol_access (list of ProtocolOption): Specifies the supported

Protocols for the View.

qos (QoS): Specifies the Quality of Service (QoS) Policy for the

View.

override_global_subnet_whitelist (bool): Specifies whether view level

client subnet whitelist overrides cluster and global setting.

subnet_whitelist (list of Subnet): Array of Subnets. Specifies a list

of Subnets with IP addresses that have permissions to access the View. (Overrides or extends the Subnets specified at the global Cohesity Cluster level.)

override_global_netgroup_whitelist (bool): Specifies whether view

level client netgroup whitelist overrides cluster and global setting.

netgroup_whitelist (NetgroupWhitelist): Array of Netgroups. Specifies

a list of netgroups with domains that have permissions to access the View. (Overrides or extends the Netgroup specified at the global Cohesity Cluster level.)

security_mode (SecurityModeEnum): Specifies the security mode used for

this view. Currently we support the following modes: Native, Unified and NTFS style. ‘NativeMode’ indicates a native security mode. ‘UnifiedMode’ indicates a unified security mode. ‘NtfsMode’ indicates a NTFS style security mode.

storage_policy_override (StoragePolicyOverride2): Specifies if inline

deduplication and compression settings inherited from the Storage Domain (View Box) should be disabled for this View.

logical_quota (LogicalQuota): Specifies an optional logical quota

limit (in bytes) for the usage allowed on this View. (Logical data is when the data is fully hydrated and expanded.) This limit overrides the limit inherited from the Storage Domain (View Box) (if set). If logicalQuota is nil, the limit is inherited from the Storage Domain (View Box) (if set). A new write is not allowed if the Storage Domain (View Box) will exceed the specified quota. However, it takes time for the Cohesity Cluster to calculate the usage across Nodes, so the limit may be exceeded by a small amount. In addition, if the limit is increased or data is removed, there may be a delay before the Cohesity Cluster allows more data to be written to the View, as the Cluster is calculating the usage across Nodes.

file_lock_config (FileLockConfig): Optional config that enables file

locking for this view. It cannot be disabled during the edit of a view, if it has been enabled during the creation of the view. Also, it cannot be enabled if it was disabled during the creation of the view.

file_extension_filter (FileExtensionFilter2): Optional filtering

criteria that should be satisfied by all the files created in this view. It does not affect existing files.

antivirus_scan_config (AntivirusScanConfig): Specifies the antivirus

scan config settings for this View.

description (string): Specifies an optional text description about the

View.

allow_mount_on_windows (bool): Specifies if this View can be mounted

using the NFS protocol on Windows systems. If true, this View can be NFS mounted on Windows systems.

enable_minion (bool): Specifies if this view should allow minion or

not. If true, this will allow minion.

enable_filer_audit_logging (bool): Specifies if Filer Audit Logging is

enabled for this view.

tenant_id (string): Optional tenant id who has access to this View. enable_live_indexing (bool): Specifies whether to enable live indexing

for the view.

enable_offline_caching (bool): Specifies whether to enable offline

file caching of the view.

access_sids (list of string): Array of Security Identifiers (SIDs)

Specifies the list of security identifiers (SIDs) for the restricted Principals who have access to this View.

view_lock_enabled (bool): Specifies whether view lock is enabled. If

enabled the view cannot be modified or deleted until unlock. By default it is disabled.

is_read_only (bool): Specifies if the view is a read only view. User

will no longer be able to write to this view if this is set to true.

view_pinning_config (ViewPinningConfig2): Specifies the pinning config

of this view.

self_service_snapshot_config (SelfServiceSnapshotConfig2): Specifies

self service config of this view.

enable_nfs_view_discovery (bool): If set, it enables discovery of view

for NFS.

nfs_all_squash (NfsAllSquash): Specifies the NFS all squash config. nfs_root_permissions (NfsRootPermissions2): Specifies the NFS root

permission config of the view file system.

nfs_root_squash (NfsRootSquash): Specifies the NFS root squash

config.

enable_nfs_unix_authentication (bool): If set, it enables NFS UNIX

Authentication

enable_nfs_kerberos_authentication (bool): If set, it enables NFS

Kerberos Authentication

enable_nfs_kerberos_integrity (bool): If set, it enables NFS Kerberos

Integrity

enable_nfs_kerberos_privacy (bool): If set, it enables NFS Kerberos

Privacy

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 (SmbPermissionsInfo): Specifies the SMB

permissions for the View.

share_permissions (SharePermissions): Specifies share level

permissions of the view.

s_3_access_path (string): Specifies the path to access this View as an

S3 share.

swift_project_domain (string): Specifies the Keystone project domain. swift_project_name (string): Specifies the Keystone project name. swift_user_domain (string): Specifies the Keystone user domain. swift_username (string): Specifies the Keystone username.

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.