class Comet::AdminUserPermissions

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  unless @prevent_edit_server_settings.nil?
    ret['PreventEditServerSettings'] = @prevent_edit_server_settings
  end
  unless @prevent_server_shutdown.nil?
    ret['PreventServerShutdown'] = @prevent_server_shutdown
  end
  unless @prevent_change_password.nil?
    ret['PreventChangePassword'] = @prevent_change_password
  end
  unless @allow_edit_branding.nil?
    ret['AllowEditBranding'] = @allow_edit_branding
  end
  unless @allow_edit_email_options.nil?
    ret['AllowEditEmailOptions'] = @allow_edit_email_options
  end
  unless @allow_edit_remote_storage.nil?
    ret['AllowEditRemoteStorage'] = @allow_edit_remote_storage
  end
  unless @allow_edit_webhooks.nil?
    ret['AllowEditWebhooks'] = @allow_edit_webhooks
  end
  unless @allow_edit_external_auth_sources.nil?
    ret['AllowEditExternalAuthSources'] = @allow_edit_external_auth_sources
  end
  unless @deny_constellation_role.nil?
    ret['DenyConstellationRole'] = @deny_constellation_role
  end
  unless @deny_view_server_history.nil?
    ret['DenyViewServerHistory'] = @deny_view_server_history
  end
  unless @deny_view_server_info.nil?
    ret['DenyViewServerInfo'] = @deny_view_server_info
  end
  unless @prevent_delete_storage_vault.nil?
    ret['PreventDeleteStorageVault'] = @prevent_delete_storage_vault
  end
  unless @prevent_request_storage_vault.nil?
    ret['PreventRequestStorageVault'] = @prevent_request_storage_vault
  end
  unless @prevent_add_custom_storage_vault.nil?
    ret['PreventAddCustomStorageVault'] = @prevent_add_custom_storage_vault
  end
  unless @hide_cloud_storage_branding.nil?
    ret['HideCloudStorageBranding'] = @hide_cloud_storage_branding
  end
  unless @should_restrict_provider_list.nil?
    ret['ShouldRestrictProviderList'] = @should_restrict_provider_list
  end
  unless @allowed_providers_when_restricted.nil?
    ret['AllowedProvidersWhenRestricted'] = @allowed_providers_when_restricted
  end
  unless @allowed_user_policies.nil?
    ret['AllowedUserPolicies'] = @allowed_user_policies
  end
  unless @deny_software_build_role.nil?
    ret['DenySoftwareBuildRole'] = @deny_software_build_role
  end
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end