models.view_params module

class models.view_params.ViewParams(client_subnet_whitelist_vec=None, disable_nfs_access=None, protocol_access_info=None, qos_mapping_vec=None, storage_policy_override=None, view_description=None, worm_lock_expiry_usecs=None)[source]

Bases: object

Implementation of the ‘ViewParams’ model.

Contains information needed when creating or cloning a view.

Attributes:
client_subnet_whitelist_vec (list of ClusterConfigProtoSubnet): List

of external client subnets from where requests will be received for the new view.

disable_nfs_access (bool): Whether to disable NFS access in the new

view.

protocol_access_info (ViewIdMappingProtoProtocolAccessInfo): The

protocol access override (if any) of the view.

qos_mapping_vec (list of ClusterConfigProtoQoSMapping): The qos

mappings (if any) for the new view.

storage_policy_override (ClusterConfigProtoStoragePolicyOverride):

The storage policy override (if any) for the new view.

view_description (string): The description to be applied to the new

view.

worm_lock_expiry_usecs (long|int): This value ‘worm_lock_expiry_usecs’

if specified will be set on the cloned view. This guarantees that the cloned view cannot be removed till the specified timestamp has reached. NOTE: If this is specified the clone view will be marked as immutable.

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.