class Comet::UserPolicy
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['PreventRequestStorageVault'] = @prevent_request_storage_vault ret['PreventAddCustomStorageVault'] = @prevent_add_custom_storage_vault ret['PreventEditStorageVault'] = @prevent_edit_storage_vault ret['HideCloudStorageBranding'] = @hide_cloud_storage_branding ret['PreventDeleteStorageVault'] = @prevent_delete_storage_vault ret['StorageVaultProviders'] = @storage_vault_providers ret['PreventNewProtectedItem'] = @prevent_new_protected_item ret['PreventEditProtectedItem'] = @prevent_edit_protected_item ret['PreventDeleteProtectedItem'] = @prevent_delete_protected_item ret['ProtectedItemEngineTypes'] = @protected_item_engine_types unless @file_and_folder_mandatory_exclusions.nil? ret['FileAndFolderMandatoryExclusions'] = @file_and_folder_mandatory_exclusions end unless @mode_schedule_skip_already_running.nil? ret['ModeScheduleSkipAlreadyRunning'] = @mode_schedule_skip_already_running end unless @mode_admin_reset_password.nil? ret['ModeAdminResetPassword'] = @mode_admin_reset_password end unless @mode_admin_view_filenames.nil? ret['ModeAdminViewFilenames'] = @mode_admin_view_filenames end unless @mode_require_user_reset_password.nil? ret['ModeRequireUserResetPassword'] = @mode_require_user_reset_password end ret['PreventDeleteSingleSnapshots'] = @prevent_delete_single_snapshots ret['PreventChangeAccountPassword'] = @prevent_change_account_password ret['PreventChangeEmailSettings'] = @prevent_change_email_settings ret['PreventChangeAccountName'] = @prevent_change_account_name ret['PreventOpenAppUI'] = @prevent_open_app_ui ret['RequirePasswordOpenAppUI'] = @require_password_open_app_ui ret['HideAppImport'] = @hide_app_import ret['HideAppVersion'] = @hide_app_version ret['PreventOpenWebUI'] = @prevent_open_web_ui ret['PreventViewDeviceNames'] = @prevent_view_device_names ret['DefaultEmailReports'] = @default_email_reports ret['DefaultStorageVaultRetention'] = @default_storage_vault_retention ret['EnforceStorageVaultRetention'] = @enforce_storage_vault_retention ret['PreventProtectedItemRetention'] = @prevent_protected_item_retention ret['AllowEditObjectLockRetention'] = @allow_edit_object_lock_retention ret['DefaultSources'] = @default_sources ret['DefaultSourcesBackupRules'] = @default_sources_backup_rules ret['DefaultSourcesWithOSRestriction'] = @default_sources_with_osrestriction ret['DefaultBackupRules'] = @default_backup_rules unless @random_delay_secs.nil? ret['RandomDelaySecs'] = @random_delay_secs end @unknown_json_fields.each do |k, v| ret[k] = v end ret end